<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>cmake-modules - cmake</title></head><body>
<h2><a name="section_Index">Master Index CMake 2.8.7</a></h2>
<ul>
  <li><a href="#section_Introduction"><b>Introduction</b></a></li>
  <li><a href="#section_Description"><b>Description</b></a></li>
  <li><a href="#section_StandardCMakeModules"><b>Standard CMake Modules</b></a></li>
  <li><a href="#section_Copyright"><b>Copyright</b></a></li>
  <li><a href="#section_SeeAlso"><b>See Also</b></a></li>
</ul>
<h2><a name="section_Introduction"/>Introduction</h2>
<p>cmake-modules - Reference of available CMake modules.</p>

<h2><a name="section_Description"/>Description</h2>
<p>The "cmake" executable is the CMake command-line interface.  It may be used to configure projects in scripts.  Project configuration settings may be specified on the command line with the -D option.  The -i option will cause cmake to interactively prompt for such settings.</p>

<p>CMake is a cross-platform build system generator.  Projects specify their build process with platform-independent CMake listfiles included in each directory of a source tree with the name CMakeLists.txt. Users build a project by using CMake to generate a build system for a native tool on their platform.</p>

<h2><a name="section_StandardCMakeModules"/>Standard CMake Modules</h2>
<ul>
    <li><a href="#module:AddFileDependencies"><b><code>AddFileDependencies</code></b></a></li>    <li><a href="#module:BundleUtilities"><b><code>BundleUtilities</code></b></a></li>    <li><a href="#module:CMakeBackwardCompatibilityCXX"><b><code>CMakeBackwardCompatibilityCXX</code></b></a></li>    <li><a href="#module:CMakeDependentOption"><b><code>CMakeDependentOption</code></b></a></li>    <li><a href="#module:CMakeDetermineVSServicePack"><b><code>CMakeDetermineVSServicePack</code></b></a></li>    <li><a href="#module:CMakeFindFrameworks"><b><code>CMakeFindFrameworks</code></b></a></li>    <li><a href="#module:CMakeFindPackageMode"><b><code>CMakeFindPackageMode</code></b></a></li>    <li><a href="#module:CMakeForceCompiler"><b><code>CMakeForceCompiler</code></b></a></li>    <li><a href="#module:CMakeParseArguments"><b><code>CMakeParseArguments</code></b></a></li>    <li><a href="#module:CMakePrintSystemInformation"><b><code>CMakePrintSystemInformation</code></b></a></li>    <li><a href="#module:CMakePushCheckState"><b><code>CMakePushCheckState</code></b></a></li>    <li><a href="#module:CMakeVerifyManifest"><b><code>CMakeVerifyManifest</code></b></a></li>    <li><a href="#module:CPack"><b><code>CPack</code></b></a></li>    <li><a href="#module:CPackBundle"><b><code>CPackBundle</code></b></a></li>    <li><a href="#module:CPackComponent"><b><code>CPackComponent</code></b></a></li>    <li><a href="#module:CPackDeb"><b><code>CPackDeb</code></b></a></li>    <li><a href="#module:CPackNSIS"><b><code>CPackNSIS</code></b></a></li>    <li><a href="#module:CPackRPM"><b><code>CPackRPM</code></b></a></li>    <li><a href="#module:CTest"><b><code>CTest</code></b></a></li>    <li><a href="#module:CTestScriptMode"><b><code>CTestScriptMode</code></b></a></li>    <li><a href="#module:CheckCCompilerFlag"><b><code>CheckCCompilerFlag</code></b></a></li>    <li><a href="#module:CheckCSourceCompiles"><b><code>CheckCSourceCompiles</code></b></a></li>    <li><a href="#module:CheckCSourceRuns"><b><code>CheckCSourceRuns</code></b></a></li>    <li><a href="#module:CheckCXXCompilerFlag"><b><code>CheckCXXCompilerFlag</code></b></a></li>    <li><a href="#module:CheckCXXSourceCompiles"><b><code>CheckCXXSourceCompiles</code></b></a></li>    <li><a href="#module:CheckCXXSourceRuns"><b><code>CheckCXXSourceRuns</code></b></a></li>    <li><a href="#module:CheckCXXSymbolExists"><b><code>CheckCXXSymbolExists</code></b></a></li>    <li><a href="#module:CheckFortranFunctionExists"><b><code>CheckFortranFunctionExists</code></b></a></li>    <li><a href="#module:CheckFunctionExists"><b><code>CheckFunctionExists</code></b></a></li>    <li><a href="#module:CheckIncludeFile"><b><code>CheckIncludeFile</code></b></a></li>    <li><a href="#module:CheckIncludeFileCXX"><b><code>CheckIncludeFileCXX</code></b></a></li>    <li><a href="#module:CheckIncludeFiles"><b><code>CheckIncludeFiles</code></b></a></li>    <li><a href="#module:CheckLibraryExists"><b><code>CheckLibraryExists</code></b></a></li>    <li><a href="#module:CheckPrototypeDefinition"><b><code>CheckPrototypeDefinition</code></b></a></li>    <li><a href="#module:CheckStructHasMember"><b><code>CheckStructHasMember</code></b></a></li>    <li><a href="#module:CheckSymbolExists"><b><code>CheckSymbolExists</code></b></a></li>    <li><a href="#module:CheckTypeSize"><b><code>CheckTypeSize</code></b></a></li>    <li><a href="#module:CheckVariableExists"><b><code>CheckVariableExists</code></b></a></li>    <li><a href="#module:Dart"><b><code>Dart</code></b></a></li>    <li><a href="#module:DeployQt4"><b><code>DeployQt4</code></b></a></li>    <li><a href="#module:Documentation"><b><code>Documentation</code></b></a></li>    <li><a href="#module:ExternalProject"><b><code>ExternalProject</code></b></a></li>    <li><a href="#module:FeatureSummary"><b><code>FeatureSummary</code></b></a></li>    <li><a href="#module:FindALSA"><b><code>FindALSA</code></b></a></li>    <li><a href="#module:FindASPELL"><b><code>FindASPELL</code></b></a></li>    <li><a href="#module:FindAVIFile"><b><code>FindAVIFile</code></b></a></li>    <li><a href="#module:FindArmadillo"><b><code>FindArmadillo</code></b></a></li>    <li><a href="#module:FindBISON"><b><code>FindBISON</code></b></a></li>    <li><a href="#module:FindBLAS"><b><code>FindBLAS</code></b></a></li>    <li><a href="#module:FindBZip2"><b><code>FindBZip2</code></b></a></li>    <li><a href="#module:FindBoost"><b><code>FindBoost</code></b></a></li>    <li><a href="#module:FindBullet"><b><code>FindBullet</code></b></a></li>    <li><a href="#module:FindCABLE"><b><code>FindCABLE</code></b></a></li>    <li><a href="#module:FindCUDA"><b><code>FindCUDA</code></b></a></li>    <li><a href="#module:FindCURL"><b><code>FindCURL</code></b></a></li>    <li><a href="#module:FindCVS"><b><code>FindCVS</code></b></a></li>    <li><a href="#module:FindCoin3D"><b><code>FindCoin3D</code></b></a></li>    <li><a href="#module:FindCups"><b><code>FindCups</code></b></a></li>    <li><a href="#module:FindCurses"><b><code>FindCurses</code></b></a></li>    <li><a href="#module:FindCxxTest"><b><code>FindCxxTest</code></b></a></li>    <li><a href="#module:FindCygwin"><b><code>FindCygwin</code></b></a></li>    <li><a href="#module:FindDCMTK"><b><code>FindDCMTK</code></b></a></li>    <li><a href="#module:FindDart"><b><code>FindDart</code></b></a></li>    <li><a href="#module:FindDevIL"><b><code>FindDevIL</code></b></a></li>    <li><a href="#module:FindDoxygen"><b><code>FindDoxygen</code></b></a></li>    <li><a href="#module:FindEXPAT"><b><code>FindEXPAT</code></b></a></li>    <li><a href="#module:FindFLEX"><b><code>FindFLEX</code></b></a></li>    <li><a href="#module:FindFLTK"><b><code>FindFLTK</code></b></a></li>    <li><a href="#module:FindFLTK2"><b><code>FindFLTK2</code></b></a></li>    <li><a href="#module:FindFreetype"><b><code>FindFreetype</code></b></a></li>    <li><a href="#module:FindGCCXML"><b><code>FindGCCXML</code></b></a></li>    <li><a href="#module:FindGDAL"><b><code>FindGDAL</code></b></a></li>    <li><a href="#module:FindGIF"><b><code>FindGIF</code></b></a></li>    <li><a href="#module:FindGLUT"><b><code>FindGLUT</code></b></a></li>    <li><a href="#module:FindGTK"><b><code>FindGTK</code></b></a></li>    <li><a href="#module:FindGTK2"><b><code>FindGTK2</code></b></a></li>    <li><a href="#module:FindGTest"><b><code>FindGTest</code></b></a></li>    <li><a href="#module:FindGettext"><b><code>FindGettext</code></b></a></li>    <li><a href="#module:FindGit"><b><code>FindGit</code></b></a></li>    <li><a href="#module:FindGnuTLS"><b><code>FindGnuTLS</code></b></a></li>    <li><a href="#module:FindGnuplot"><b><code>FindGnuplot</code></b></a></li>    <li><a href="#module:FindHDF5"><b><code>FindHDF5</code></b></a></li>    <li><a href="#module:FindHSPELL"><b><code>FindHSPELL</code></b></a></li>    <li><a href="#module:FindHTMLHelp"><b><code>FindHTMLHelp</code></b></a></li>    <li><a href="#module:FindITK"><b><code>FindITK</code></b></a></li>    <li><a href="#module:FindImageMagick"><b><code>FindImageMagick</code></b></a></li>    <li><a href="#module:FindJNI"><b><code>FindJNI</code></b></a></li>    <li><a href="#module:FindJPEG"><b><code>FindJPEG</code></b></a></li>    <li><a href="#module:FindJasper"><b><code>FindJasper</code></b></a></li>    <li><a href="#module:FindJava"><b><code>FindJava</code></b></a></li>    <li><a href="#module:FindKDE3"><b><code>FindKDE3</code></b></a></li>    <li><a href="#module:FindKDE4"><b><code>FindKDE4</code></b></a></li>    <li><a href="#module:FindLAPACK"><b><code>FindLAPACK</code></b></a></li>    <li><a href="#module:FindLATEX"><b><code>FindLATEX</code></b></a></li>    <li><a href="#module:FindLibArchive"><b><code>FindLibArchive</code></b></a></li>    <li><a href="#module:FindLibXml2"><b><code>FindLibXml2</code></b></a></li>    <li><a href="#module:FindLibXslt"><b><code>FindLibXslt</code></b></a></li>    <li><a href="#module:FindLua50"><b><code>FindLua50</code></b></a></li>    <li><a href="#module:FindLua51"><b><code>FindLua51</code></b></a></li>    <li><a href="#module:FindMFC"><b><code>FindMFC</code></b></a></li>    <li><a href="#module:FindMPEG"><b><code>FindMPEG</code></b></a></li>    <li><a href="#module:FindMPEG2"><b><code>FindMPEG2</code></b></a></li>    <li><a href="#module:FindMPI"><b><code>FindMPI</code></b></a></li>    <li><a href="#module:FindMatlab"><b><code>FindMatlab</code></b></a></li>    <li><a href="#module:FindMotif"><b><code>FindMotif</code></b></a></li>    <li><a href="#module:FindOpenAL"><b><code>FindOpenAL</code></b></a></li>    <li><a href="#module:FindOpenGL"><b><code>FindOpenGL</code></b></a></li>    <li><a href="#module:FindOpenMP"><b><code>FindOpenMP</code></b></a></li>    <li><a href="#module:FindOpenSSL"><b><code>FindOpenSSL</code></b></a></li>    <li><a href="#module:FindOpenSceneGraph"><b><code>FindOpenSceneGraph</code></b></a></li>    <li><a href="#module:FindOpenThreads"><b><code>FindOpenThreads</code></b></a></li>    <li><a href="#module:FindPHP4"><b><code>FindPHP4</code></b></a></li>    <li><a href="#module:FindPNG"><b><code>FindPNG</code></b></a></li>    <li><a href="#module:FindPackageHandleStandardArgs"><b><code>FindPackageHandleStandardArgs</code></b></a></li>    <li><a href="#module:FindPackageMessage"><b><code>FindPackageMessage</code></b></a></li>    <li><a href="#module:FindPerl"><b><code>FindPerl</code></b></a></li>    <li><a href="#module:FindPerlLibs"><b><code>FindPerlLibs</code></b></a></li>    <li><a href="#module:FindPhysFS"><b><code>FindPhysFS</code></b></a></li>    <li><a href="#module:FindPike"><b><code>FindPike</code></b></a></li>    <li><a href="#module:FindPkgConfig"><b><code>FindPkgConfig</code></b></a></li>    <li><a href="#module:FindPostgreSQL"><b><code>FindPostgreSQL</code></b></a></li>    <li><a href="#module:FindProducer"><b><code>FindProducer</code></b></a></li>    <li><a href="#module:FindProtobuf"><b><code>FindProtobuf</code></b></a></li>    <li><a href="#module:FindPythonInterp"><b><code>FindPythonInterp</code></b></a></li>    <li><a href="#module:FindPythonLibs"><b><code>FindPythonLibs</code></b></a></li>    <li><a href="#module:FindQt"><b><code>FindQt</code></b></a></li>    <li><a href="#module:FindQt3"><b><code>FindQt3</code></b></a></li>    <li><a href="#module:FindQt4"><b><code>FindQt4</code></b></a></li>    <li><a href="#module:FindQuickTime"><b><code>FindQuickTime</code></b></a></li>    <li><a href="#module:FindRTI"><b><code>FindRTI</code></b></a></li>    <li><a href="#module:FindRuby"><b><code>FindRuby</code></b></a></li>    <li><a href="#module:FindSDL"><b><code>FindSDL</code></b></a></li>    <li><a href="#module:FindSDL_image"><b><code>FindSDL_image</code></b></a></li>    <li><a href="#module:FindSDL_mixer"><b><code>FindSDL_mixer</code></b></a></li>    <li><a href="#module:FindSDL_net"><b><code>FindSDL_net</code></b></a></li>    <li><a href="#module:FindSDL_sound"><b><code>FindSDL_sound</code></b></a></li>    <li><a href="#module:FindSDL_ttf"><b><code>FindSDL_ttf</code></b></a></li>    <li><a href="#module:FindSWIG"><b><code>FindSWIG</code></b></a></li>    <li><a href="#module:FindSelfPackers"><b><code>FindSelfPackers</code></b></a></li>    <li><a href="#module:FindSquish"><b><code>FindSquish</code></b></a></li>    <li><a href="#module:FindSubversion"><b><code>FindSubversion</code></b></a></li>    <li><a href="#module:FindTCL"><b><code>FindTCL</code></b></a></li>    <li><a href="#module:FindTIFF"><b><code>FindTIFF</code></b></a></li>    <li><a href="#module:FindTclStub"><b><code>FindTclStub</code></b></a></li>    <li><a href="#module:FindTclsh"><b><code>FindTclsh</code></b></a></li>    <li><a href="#module:FindThreads"><b><code>FindThreads</code></b></a></li>    <li><a href="#module:FindUnixCommands"><b><code>FindUnixCommands</code></b></a></li>    <li><a href="#module:FindVTK"><b><code>FindVTK</code></b></a></li>    <li><a href="#module:FindWget"><b><code>FindWget</code></b></a></li>    <li><a href="#module:FindWish"><b><code>FindWish</code></b></a></li>    <li><a href="#module:FindX11"><b><code>FindX11</code></b></a></li>    <li><a href="#module:FindXMLRPC"><b><code>FindXMLRPC</code></b></a></li>    <li><a href="#module:FindZLIB"><b><code>FindZLIB</code></b></a></li>    <li><a href="#module:Findosg"><b><code>Findosg</code></b></a></li>    <li><a href="#module:FindosgAnimation"><b><code>FindosgAnimation</code></b></a></li>    <li><a href="#module:FindosgDB"><b><code>FindosgDB</code></b></a></li>    <li><a href="#module:FindosgFX"><b><code>FindosgFX</code></b></a></li>    <li><a href="#module:FindosgGA"><b><code>FindosgGA</code></b></a></li>    <li><a href="#module:FindosgIntrospection"><b><code>FindosgIntrospection</code></b></a></li>    <li><a href="#module:FindosgManipulator"><b><code>FindosgManipulator</code></b></a></li>    <li><a href="#module:FindosgParticle"><b><code>FindosgParticle</code></b></a></li>    <li><a href="#module:FindosgProducer"><b><code>FindosgProducer</code></b></a></li>    <li><a href="#module:FindosgShadow"><b><code>FindosgShadow</code></b></a></li>    <li><a href="#module:FindosgSim"><b><code>FindosgSim</code></b></a></li>    <li><a href="#module:FindosgTerrain"><b><code>FindosgTerrain</code></b></a></li>    <li><a href="#module:FindosgText"><b><code>FindosgText</code></b></a></li>    <li><a href="#module:FindosgUtil"><b><code>FindosgUtil</code></b></a></li>    <li><a href="#module:FindosgViewer"><b><code>FindosgViewer</code></b></a></li>    <li><a href="#module:FindosgVolume"><b><code>FindosgVolume</code></b></a></li>    <li><a href="#module:FindosgWidget"><b><code>FindosgWidget</code></b></a></li>    <li><a href="#module:Findosg_functions"><b><code>Findosg_functions</code></b></a></li>    <li><a href="#module:FindwxWidgets"><b><code>FindwxWidgets</code></b></a></li>    <li><a href="#module:FindwxWindows"><b><code>FindwxWindows</code></b></a></li>    <li><a href="#module:FortranCInterface"><b><code>FortranCInterface</code></b></a></li>    <li><a href="#module:GNUInstallDirs"><b><code>GNUInstallDirs</code></b></a></li>    <li><a href="#module:GenerateExportHeader"><b><code>GenerateExportHeader</code></b></a></li>    <li><a href="#module:GetPrerequisites"><b><code>GetPrerequisites</code></b></a></li>    <li><a href="#module:InstallRequiredSystemLibraries"><b><code>InstallRequiredSystemLibraries</code></b></a></li>    <li><a href="#module:MacroAddFileDependencies"><b><code>MacroAddFileDependencies</code></b></a></li>    <li><a href="#module:ProcessorCount"><b><code>ProcessorCount</code></b></a></li>    <li><a href="#module:Qt4ConfigDependentSettings"><b><code>Qt4ConfigDependentSettings</code></b></a></li>    <li><a href="#module:Qt4Macros"><b><code>Qt4Macros</code></b></a></li>    <li><a href="#module:SelectLibraryConfigurations"><b><code>SelectLibraryConfigurations</code></b></a></li>    <li><a href="#module:SquishTestScript"><b><code>SquishTestScript</code></b></a></li>    <li><a href="#module:TestBigEndian"><b><code>TestBigEndian</code></b></a></li>    <li><a href="#module:TestCXXAcceptsFlag"><b><code>TestCXXAcceptsFlag</code></b></a></li>    <li><a href="#module:TestForANSIForScope"><b><code>TestForANSIForScope</code></b></a></li>    <li><a href="#module:TestForANSIStreamHeaders"><b><code>TestForANSIStreamHeaders</code></b></a></li>    <li><a href="#module:TestForSSTREAM"><b><code>TestForSSTREAM</code></b></a></li>    <li><a href="#module:TestForSTDNamespace"><b><code>TestForSTDNamespace</code></b></a></li>    <li><a href="#module:UseEcos"><b><code>UseEcos</code></b></a></li>    <li><a href="#module:UseJava"><b><code>UseJava</code></b></a></li>    <li><a href="#module:UseJavaClassFilelist"><b><code>UseJavaClassFilelist</code></b></a></li>    <li><a href="#module:UseJavaSymlinks"><b><code>UseJavaSymlinks</code></b></a></li>    <li><a href="#module:UsePkgConfig"><b><code>UsePkgConfig</code></b></a></li>    <li><a href="#module:UseQt4"><b><code>UseQt4</code></b></a></li>    <li><a href="#module:UseSWIG"><b><code>UseSWIG</code></b></a></li>    <li><a href="#module:Use_wxWindows"><b><code>Use_wxWindows</code></b></a></li>    <li><a href="#module:UsewxWidgets"><b><code>UsewxWidgets</code></b></a></li>    <li><a href="#module:WriteBasicConfigVersionFile"><b><code>WriteBasicConfigVersionFile</code></b></a></li></ul>
<p>The following modules are provided with CMake. They can be used with INCLUDE(ModuleName).</p>

<pre>  CMake Modules - Modules coming with CMake, the Cross-Platform Makefile Generator.</pre>
    
<p>This is the documentation for the modules and scripts coming with CMake. Using these modules you can check the computer system for installed software packages, features of the compiler and the existance of headers to name just a few.</p>

<ul>
  <li>
    <a name="module:AddFileDependencies"><b><code>AddFileDependencies</code></b></a>: ADD_FILE_DEPENDENCIES(source_file depend_files...)<br />
    <p>Adds the given files as dependencies to source_file<br /></p>

  </li>
  <li>
    <a name="module:BundleUtilities"><b><code>BundleUtilities</code></b></a>: Functions to help assemble a standalone bundle application.<br />
    <p>A collection of CMake utility functions useful for dealing with .app bundles on the Mac and bundle-like directories on any OS.<br /></p>
<p>The following functions are provided by this module:<br /></p>
<pre>   fixup_bundle<br />   copy_and_fixup_bundle<br />   verify_app<br />   get_bundle_main_executable<br />   get_dotapp_dir<br />   get_bundle_and_executable<br />   get_bundle_all_executables<br />   get_item_key<br />   clear_bundle_keys<br />   set_bundle_key_values<br />   get_bundle_keys<br />   copy_resolved_item_into_bundle<br />   copy_resolved_framework_into_bundle<br />   fixup_bundle_item<br />   verify_bundle_prerequisites<br />   verify_bundle_symlinks<br /></pre>
    <p>Requires CMake 2.6 or greater because it uses function, break and PARENT_SCOPE. Also depends on GetPrerequisites.cmake.<br /></p>
<pre>  FIXUP_BUNDLE(&lt;app&gt; &lt;libs&gt; &lt;dirs&gt;)<br /></pre>
    <p>Fix up a bundle in-place and make it standalone, such that it can be drag-n-drop copied to another machine and run on that machine as long as all of the system libraries are compatible.<br /></p>
<p>If you pass plugins to fixup_bundle as the libs parameter, you should install them or copy them into the bundle before calling fixup_bundle. The "libs" parameter is a list of libraries that must be fixed up, but that cannot be determined by otool output analysis. (i.e., plugins)<br /></p>
<p>Gather all the keys for all the executables and libraries in a bundle, and then, for each key, copy each prerequisite into the bundle. Then fix each one up according to its own list of prerequisites.<br /></p>
<p>Then clear all the keys and call verify_app on the final bundle to ensure that it is truly standalone.<br /></p>
<pre>  COPY_AND_FIXUP_BUNDLE(&lt;src&gt; &lt;dst&gt; &lt;libs&gt; &lt;dirs&gt;)<br /></pre>
    <p>Makes a copy of the bundle &lt;src&gt; at location &lt;dst&gt; and then fixes up the new copied bundle in-place at &lt;dst&gt;...<br /></p>
<pre>  VERIFY_APP(&lt;app&gt;)<br /></pre>
    <p>Verifies that an application &lt;app&gt; appears valid based on running analysis tools on it. Calls "message(FATAL_ERROR" if the application is not verified.<br /></p>
<pre>  GET_BUNDLE_MAIN_EXECUTABLE(&lt;bundle&gt; &lt;result_var&gt;)<br /></pre>
    <p>The result will be the full path name of the bundle's main executable file or an "error:" prefixed string if it could not be determined.<br /></p>
<pre>  GET_DOTAPP_DIR(&lt;exe&gt; &lt;dotapp_dir_var&gt;)<br /></pre>
    <p>Returns the nearest parent dir whose name ends with ".app" given the full path to an executable. If there is no such parent dir, then simply return the dir containing the executable.<br /></p>
<p>The returned directory may or may not exist.<br /></p>
<pre>  GET_BUNDLE_AND_EXECUTABLE(&lt;app&gt; &lt;bundle_var&gt; &lt;executable_var&gt; &lt;valid_var&gt;)<br /></pre>
    <p>Takes either a ".app" directory name or the name of an executable nested inside a ".app" directory and returns the path to the ".app" directory in &lt;bundle_var&gt; and the path to its main executable in &lt;executable_var&gt;<br /></p>
<pre>  GET_BUNDLE_ALL_EXECUTABLES(&lt;bundle&gt; &lt;exes_var&gt;)<br /></pre>
    <p>Scans the given bundle recursively for all executable files and accumulates them into a variable.<br /></p>
<pre>  GET_ITEM_KEY(&lt;item&gt; &lt;key_var&gt;)<br /></pre>
    <p>Given a file (item) name, generate a key that should be unique considering the set of libraries that need copying or fixing up to make a bundle standalone. This is essentially the file name including extension with "." replaced by "_"<br /></p>
<p>This key is used as a prefix for CMake variables so that we can associate a set of variables with a given item based on its key.<br /></p>
<pre>  CLEAR_BUNDLE_KEYS(&lt;keys_var&gt;)<br /></pre>
    <p>Loop over the list of keys, clearing all the variables associated with each key. After the loop, clear the list of keys itself.<br /></p>
<p>Caller of get_bundle_keys should call clear_bundle_keys when done with list of keys.<br /></p>
<pre>  SET_BUNDLE_KEY_VALUES(&lt;keys_var&gt; &lt;context&gt; &lt;item&gt; &lt;exepath&gt; &lt;dirs&gt;<br />                        &lt;copyflag&gt;)<br /></pre>
    <p>Add a key to the list (if necessary) for the given item. If added, also set all the variables associated with that key.<br /></p>
<pre>  GET_BUNDLE_KEYS(&lt;app&gt; &lt;libs&gt; &lt;dirs&gt; &lt;keys_var&gt;)<br /></pre>
    <p>Loop over all the executable and library files within the bundle (and given as extra &lt;libs&gt;) and accumulate a list of keys representing them. Set values associated with each key such that we can loop over all of them and copy prerequisite libs into the bundle and then do appropriate install_name_tool fixups.<br /></p>
<pre>  COPY_RESOLVED_ITEM_INTO_BUNDLE(&lt;resolved_item&gt; &lt;resolved_embedded_item&gt;)<br /></pre>
    <p>Copy a resolved item into the bundle if necessary. Copy is not necessary if the resolved_item is "the same as" the resolved_embedded_item.<br /></p>
<pre>  COPY_RESOLVED_FRAMEWORK_INTO_BUNDLE(&lt;resolved_item&gt; &lt;resolved_embedded_item&gt;)<br /></pre>
    <p>Copy a resolved framework into the bundle if necessary. Copy is not necessary if the resolved_item is "the same as" the resolved_embedded_item.<br /></p>
<p>By default, BU_COPY_FULL_FRAMEWORK_CONTENTS is not set. If you want full frameworks embedded in your bundles, set BU_COPY_FULL_FRAMEWORK_CONTENTS to ON before calling fixup_bundle. By default, COPY_RESOLVED_FRAMEWORK_INTO_BUNDLE copies the framework dylib itself plus the framework Resources directory.<br /></p>
<pre>  FIXUP_BUNDLE_ITEM(&lt;resolved_embedded_item&gt; &lt;exepath&gt; &lt;dirs&gt;)<br /></pre>
    <p>Get the direct/non-system prerequisites of the resolved embedded item. For each prerequisite, change the way it is referenced to the value of the _EMBEDDED_ITEM keyed variable for that prerequisite. (Most likely changing to an "@executable_path" style reference.)<br /></p>
<p>This function requires that the resolved_embedded_item be "inside" the bundle already. In other words, if you pass plugins to fixup_bundle as the libs parameter, you should install them or copy them into the bundle before calling fixup_bundle. The "libs" parameter is a list of libraries that must be fixed up, but that cannot be determined by otool output analysis. (i.e., plugins)<br /></p>
<p>Also, change the id of the item being fixed up to its own _EMBEDDED_ITEM value.<br /></p>
<p>Accumulate changes in a local variable and make *one* call to install_name_tool at the end of the function with all the changes at once.<br /></p>
<p>If the BU_CHMOD_BUNDLE_ITEMS variable is set then bundle items will be marked writable before install_name_tool tries to change them.<br /></p>
<pre>  VERIFY_BUNDLE_PREREQUISITES(&lt;bundle&gt; &lt;result_var&gt; &lt;info_var&gt;)<br /></pre>
    <p>Verifies that the sum of all prerequisites of all files inside the bundle are contained within the bundle or are "system" libraries, presumed to exist everywhere.<br /></p>
<pre>  VERIFY_BUNDLE_SYMLINKS(&lt;bundle&gt; &lt;result_var&gt; &lt;info_var&gt;)<br /></pre>
    <p>Verifies that any symlinks found in the bundle point to other files that are already also in the bundle... Anything that points to an external file causes this function to fail the verification.</p>

  </li>
  <li>
    <a name="module:CMakeBackwardCompatibilityCXX"><b><code>CMakeBackwardCompatibilityCXX</code></b></a>: define a bunch of backwards compatibility variables<br />
    <pre>  CMAKE_ANSI_CXXFLAGS - flag for ansi c++ <br />  CMAKE_HAS_ANSI_STRING_STREAM - has &lt;strstream&gt;<br />  INCLUDE(TestForANSIStreamHeaders)<br />  INCLUDE(CheckIncludeFileCXX)<br />  INCLUDE(TestForSTDNamespace)<br />  INCLUDE(TestForANSIForScope)<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakeDependentOption"><b><code>CMakeDependentOption</code></b></a>: Macro to provide an option dependent on other options.<br />
    <p>This macro presents an option to the user only if a set of other conditions are true.  When the option is not presented a default value is used, but any value set by the user is preserved for when the option is presented again. Example invocation:<br /></p>
<pre>  CMAKE_DEPENDENT_OPTION(USE_FOO "Use Foo" ON<br />                         "USE_BAR;NOT USE_ZOT" OFF)<br /></pre>
    <p>If USE_BAR is true and USE_ZOT is false, this provides an option called USE_FOO that defaults to ON.  Otherwise, it sets USE_FOO to OFF.  If the status of USE_BAR or USE_ZOT ever changes, any value for the USE_FOO option is saved so that when the option is re-enabled it retains its old value.</p>

  </li>
  <li>
    <a name="module:CMakeDetermineVSServicePack"><b><code>CMakeDetermineVSServicePack</code></b></a>: Includes a public function for assisting users in trying to determine the<br />
    <p>Visual Studio service pack in use.<br /></p>
<p>Sets the passed in variable to one of the following values or an empty string if unknown.<br /></p>
<pre>    vc80<br />    vc80sp1<br />    vc90<br />    vc90sp1<br />    vc100<br />    vc100sp1<br /></pre>
    <p><br /></p>
<p>Usage: ===========================<br /></p>
<pre>    if(MSVC)<br />       include(CMakeDetermineVSServicePack)<br />       DetermineVSServicePack( my_service_pack )<br /></pre>
    <p><br /></p>
<pre>       if( my_service_pack )<br />           message(STATUS "Detected: ${my_service_pack}")<br />       endif()<br />    endif()<br /></pre>
    <p><br /></p>
<p>===========================</p>

  </li>
  <li>
    <a name="module:CMakeFindFrameworks"><b><code>CMakeFindFrameworks</code></b></a>: helper module to find OSX frameworks
  </li>
  <li>
    <a name="module:CMakeFindPackageMode"><b><code>CMakeFindPackageMode</code></b></a>:  <br />
    <p>This file is executed by cmake when invoked with --find-package. It expects that the following variables are set using -D:<br /></p>
<pre>   NAME = name of the package<br />   COMPILER_ID = the CMake compiler ID for which the result is, i.e. GNU/Intel/Clang/MSVC, etc.<br />   LANGUAGE = language for which the result will be used, i.e. C/CXX/Fortan/ASM<br />   MODE = EXIST : only check for existance of the given package<br />          COMPILE : print the flags needed for compiling an object file which uses the given package<br />          LINK : print the flags needed for linking when using the given package<br />   QUIET = if TRUE, don't print anything<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakeForceCompiler"><b><code>CMakeForceCompiler</code></b></a>:  <br />
    <p>This module defines macros intended for use by cross-compiling toolchain files when CMake is not able to automatically detect the compiler identification.<br /></p>
<p>Macro CMAKE_FORCE_C_COMPILER has the following signature:<br /></p>
<pre>   CMAKE_FORCE_C_COMPILER(&lt;compiler&gt; &lt;compiler-id&gt;)<br /></pre>
    <p>It sets CMAKE_C_COMPILER to the given compiler and the cmake internal variable CMAKE_C_COMPILER_ID to the given compiler-id. It also bypasses the check for working compiler and basic compiler information tests.<br /></p>
<p>Macro CMAKE_FORCE_CXX_COMPILER has the following signature:<br /></p>
<pre>   CMAKE_FORCE_CXX_COMPILER(&lt;compiler&gt; &lt;compiler-id&gt;)<br /></pre>
    <p>It sets CMAKE_CXX_COMPILER to the given compiler and the cmake internal variable CMAKE_CXX_COMPILER_ID to the given compiler-id. It also bypasses the check for working compiler and basic compiler information tests.<br /></p>
<p>Macro CMAKE_FORCE_Fortran_COMPILER has the following signature:<br /></p>
<pre>   CMAKE_FORCE_Fortran_COMPILER(&lt;compiler&gt; &lt;compiler-id&gt;)<br /></pre>
    <p>It sets CMAKE_Fortran_COMPILER to the given compiler and the cmake internal variable CMAKE_Fortran_COMPILER_ID to the given compiler-id. It also bypasses the check for working compiler and basic compiler information tests.<br /></p>
<p>So a simple toolchain file could look like this:<br /></p>
<pre>   INCLUDE (CMakeForceCompiler)<br />   SET(CMAKE_SYSTEM_NAME Generic)<br />   CMAKE_FORCE_C_COMPILER   (chc12 MetrowerksHicross)<br />   CMAKE_FORCE_CXX_COMPILER (chc12 MetrowerksHicross)<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakeParseArguments"><b><code>CMakeParseArguments</code></b></a>:  <br />
    <p>CMAKE_PARSE_ARGUMENTS(&lt;prefix&gt; &lt;options&gt; &lt;one_value_keywords&gt; &lt;multi_value_keywords&gt; args...)<br /></p>
<p>CMAKE_PARSE_ARGUMENTS() is intended to be used in macros or functions for parsing the arguments given to that macro or function. It processes the arguments and defines a set of variables which hold the values of the respective options.<br /></p>
<p>The &lt;options&gt; argument contains all options for the respective macro, i.e. keywords which can be used when calling the macro without any value following, like e.g. the OPTIONAL keyword of the install() command.<br /></p>
<p>The &lt;one_value_keywords&gt; argument contains all keywords for this macro which are followed by one value, like e.g. DESTINATION keyword of the install() command.<br /></p>
<p>The &lt;multi_value_keywords&gt; argument contains all keywords for this macro which can be followed by more than one value, like e.g. the TARGETS or FILES keywords of the install() command.<br /></p>
<p>When done, CMAKE_PARSE_ARGUMENTS() will have defined for each of the keywords listed in &lt;options&gt;, &lt;one_value_keywords&gt; and &lt;multi_value_keywords&gt; a variable composed of the given &lt;prefix&gt; followed by "_" and the name of the respective keyword. These variables will then hold the respective value from the argument list. For the &lt;options&gt; keywords this will be TRUE or FALSE.<br /></p>
<p>All remaining arguments are collected in a variable &lt;prefix&gt;_UNPARSED_ARGUMENTS, this can be checked afterwards to see whether your macro was called with unrecognized parameters.<br /></p>
<p>As an example here a my_install() macro, which takes similar arguments as the real install() command:<br /></p>
<pre>   function(MY_INSTALL)<br />     set(options OPTIONAL FAST)<br />     set(oneValueArgs DESTINATION RENAME)<br />     set(multiValueArgs TARGETS CONFIGURATIONS)<br />     cmake_parse_arguments(MY_INSTALL "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )<br />     ...<br /></pre>
    <p><br /></p>
<p>Assume my_install() has been called like this:<br /></p>
<pre>   my_install(TARGETS foo bar DESTINATION bin OPTIONAL blub)<br /></pre>
    <p><br /></p>
<p>After the cmake_parse_arguments() call the macro will have set the following variables:<br /></p>
<pre>   MY_INSTALL_OPTIONAL = TRUE<br />   MY_INSTALL_FAST = FALSE (this option was not used when calling my_install()<br />   MY_INSTALL_DESTINATION = "bin"<br />   MY_INSTALL_RENAME = "" (was not used)<br />   MY_INSTALL_TARGETS = "foo;bar"<br />   MY_INSTALL_CONFIGURATIONS = "" (was not used)<br />   MY_INSTALL_UNPARSED_ARGUMENTS = "blub" (no value expected after "OPTIONAL"<br /></pre>
    <p><br /></p>
<p>You can the continue and process these variables.<br /></p>
<p>Keywords terminate lists of values, e.g. if directly after a one_value_keyword another recognized keyword follows, this is interpreted as the beginning of the new option. E.g. my_install(TARGETS foo DESTINATION OPTIONAL) would result in MY_INSTALL_DESTINATION set to "OPTIONAL", but MY_INSTALL_DESTINATION would be empty and MY_INSTALL_OPTIONAL would be set to TRUE therefor.</p>

  </li>
  <li>
    <a name="module:CMakePrintSystemInformation"><b><code>CMakePrintSystemInformation</code></b></a>: print system information<br />
    <p>This file can be used for diagnostic purposes just include it in a project to see various internal CMake variables.</p>

  </li>
  <li>
    <a name="module:CMakePushCheckState"><b><code>CMakePushCheckState</code></b></a>:  <br />
    <p>This module defines two macros: CMAKE_PUSH_CHECK_STATE() and CMAKE_POP_CHECK_STATE() These two macros can be used to save and restore the state of the variables CMAKE_REQUIRED_FLAGS, CMAKE_REQUIRED_DEFINITIONS, CMAKE_REQUIRED_LIBRARIES and CMAKE_REQUIRED_INCLUDES used by the various Check-files coming with CMake, like e.g. check_function_exists() etc. The variable contents are pushed on a stack, pushing multiple times is supported. This is useful e.g. when executing such tests in a Find-module, where they have to be set, but after the Find-module has been executed they should have the same value as they had before.<br /></p>
<p>Usage:<br /></p>
<pre>   cmake_push_check_state()<br />   set(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} -DSOME_MORE_DEF)<br />   check_function_exists(...)<br />   cmake_pop_check_state()<br /></pre>
    
  </li>
  <li>
    <a name="module:CMakeVerifyManifest"><b><code>CMakeVerifyManifest</code></b></a>:  <br />
    <p>CMakeVerifyManifest.cmake<br /></p>
<p>This script is used to verify that embeded manifests and side by side manifests for a project match.  To run this script, cd to a directory and run the script with cmake -P. On the command line you can pass in versions that are OK even if not found in the .manifest files. For example,  cmake -Dallow_versions=8.0.50608.0 -PCmakeVerifyManifest.cmake could be used to allow an embeded manifest of 8.0.50608.0 to be used in a project even if that version was not found in the .manifest file.</p>

  </li>
  <li>
    <a name="module:CPack"><b><code>CPack</code></b></a>: foreach generator, it then<br />
    <p><br /></p>
<p>The CPack module generates binary and source installers in a variety of formats using the cpack program. Inclusion of the CPack module adds two new targets to the resulting makefiles, package and package_source, which build the binary and source installers, respectively. The generated binary installers contain everything installed via CMake's INSTALL command (and the deprecated INSTALL_FILES, INSTALL_PROGRAMS, and INSTALL_TARGETS commands).<br /></p>
<p>For certain kinds of binary installers (including the graphical installers on Mac OS X and Windows), CPack generates installers that allow users to select individual application components to install. See CPackComponent module for that.<br /></p>
<p>The CPACK_GENERATOR variable has different meanings in different contexts. In your CMakeLists.txt file, CPACK_GENERATOR is a *list of generators*: when run with no other arguments, CPack will iterate over that list and produce one package for each generator. In a CPACK_PROJECT_CONFIG_FILE, though, CPACK_GENERATOR is a *string naming a single generator*. If you need per-cpack- generator logic to control *other* cpack settings, then you need a CPACK_PROJECT_CONFIG_FILE.<br /></p>
<p>The CMake source tree itself contains a CPACK_PROJECT_CONFIG_FILE. See the top level file CMakeCPackOptions.cmake.in for an example.<br /></p>
<p>If set, the CPACK_PROJECT_CONFIG_FILE is included automatically on a per-generator basis. It only need contain overrides.<br /></p>
<p>Here's how it works:<br /></p>
<pre>     CPACK_GENERATOR list variable (unless told to use just a<br />     specific one via -G on the command line...)<br /></pre>
    <p><br /></p>
<pre>   - sets CPACK_GENERATOR to the one currently being iterated<br />   - includes the CPACK_PROJECT_CONFIG_FILE<br />   - produces the package for that generator<br /></pre>
    <p><br /></p>
<p>This is the key: For each generator listed in CPACK_GENERATOR in CPackConfig.cmake, cpack will *reset* CPACK_GENERATOR internally to *the one currently being used* and then include the CPACK_PROJECT_CONFIG_FILE.<br /></p>
<p>Before including this CPack module in your CMakeLists.txt file, there are a variety of variables that can be set to customize the resulting installers. The most commonly-used variables are:<br /></p>
<pre>   CPACK_PACKAGE_NAME - The name of the package (or application). If<br />   not specified, defaults to the project name.<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_VENDOR - The name of the package vendor (e.g.,<br />   "Kitware").<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_VERSION_MAJOR - Package major Version<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_VERSION_MINOR - Package minor Version<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_VERSION_PATCH - Package patch Version<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_DESCRIPTION_FILE - A text file used to describe the<br />   project. Used, for example, the introduction screen of a<br />   CPack-generated Windows installer to describe the project.<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_DESCRIPTION_SUMMARY - Short description of the<br />   project (only a few words).<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_FILE_NAME - The name of the package file to generate,<br />   not including the extension. For example, cmake-2.6.1-Linux-i686.<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_INSTALL_DIRECTORY - Installation directory on the<br />   target system, e.g., "CMake 2.5".<br /></pre>
    <p><br /></p>
<pre>   CPACK_PROJECT_CONFIG_FILE - File included at cpack time, once per<br />   generator after setting CPACK_GENERATOR to the actual generator<br />   being used. Allows per-generator setting of CPACK_* variables at<br />   cpack time.<br /></pre>
    <p><br /></p>
<pre>   CPACK_RESOURCE_FILE_LICENSE - License file for the project, which<br />   will typically be displayed to the user (often with an explicit<br />   "Accept" button, for graphical installers) prior to installation.<br /></pre>
    <p><br /></p>
<pre>   CPACK_RESOURCE_FILE_README - ReadMe file for the project, which<br />   typically describes in some detail<br /></pre>
    <p><br /></p>
<pre>   CPACK_RESOURCE_FILE_WELCOME - Welcome file for the project, which<br />   welcomes users to this installer. Typically used in the graphical<br />   installers on Windows and Mac OS X.<br /></pre>
    <p><br /></p>
<pre>   CPACK_MONOLITHIC_INSTALL - Disables the component-based <br />   installation mechanism, so that all components are always installed.<br /></pre>
    <p><br /></p>
<pre>   CPACK_GENERATOR - List of CPack generators to use. If not<br />   specified, CPack will create a set of options (e.g.,<br />   CPACK_BINARY_NSIS) allowing the user to enable/disable individual<br />   generators.<br /></pre>
    <p><br /></p>
<pre>   CPACK_OUTPUT_CONFIG_FILE - The name of the CPack configuration file<br />   for binary installers that will be generated by the CPack<br />   module. Defaults to CPackConfig.cmake.<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_EXECUTABLES - Lists each of the executables along<br />   with a text label, to be used to create Start Menu shortcuts on<br />   Windows. For example, setting this to the list ccmake;CMake will<br />   create a shortcut named "CMake" that will execute the installed<br />   executable ccmake.<br /></pre>
    <p><br /></p>
<pre>   CPACK_STRIP_FILES - List of files to be stripped. Starting with<br />   CMake 2.6.0 CPACK_STRIP_FILES will be a boolean variable which<br />   enables stripping of all files (a list of files evaluates to TRUE<br />   in CMake, so this change is compatible).<br /></pre>
    <p><br /></p>
<p>The following CPack variables are specific to source packages, and  will not affect binary packages:<br /></p>
<pre>   CPACK_SOURCE_PACKAGE_FILE_NAME - The name of the source package,<br />   e.g., cmake-2.6.1<br /></pre>
    <p><br /></p>
<pre>   CPACK_SOURCE_STRIP_FILES - List of files in the source tree that<br />   will be stripped. Starting with CMake 2.6.0<br />   CPACK_SOURCE_STRIP_FILES will be a boolean variable which enables<br />   stripping of all files (a list of files evaluates to TRUE in CMake,<br />   so this change is compatible).<br /></pre>
    <p><br /></p>
<pre>   CPACK_SOURCE_GENERATOR - List of generators used for the source<br />   packages. As with CPACK_GENERATOR, if this is not specified then<br />   CPack will create a set of options (e.g., CPACK_SOURCE_ZIP)<br />   allowing users to select which packages will be generated.<br /></pre>
    <p><br /></p>
<pre>   CPACK_SOURCE_OUTPUT_CONFIG_FILE - The name of the CPack<br />   configuration file for source installers that will be generated by<br />   the CPack module. Defaults to CPackSourceConfig.cmake.<br /></pre>
    <p><br /></p>
<pre>   CPACK_SOURCE_IGNORE_FILES - Pattern of files in the source tree<br />   that won't be packaged when building a source package. This is a<br />   list of patterns, e.g., /CVS/;/\\.svn/;\\.swp$;\\.#;/#;.*~;cscope.*<br /></pre>
    <p><br /></p>
<p>The following variables are specific to the DragNDrop installers built on Mac OS X:<br /></p>
<pre>   CPACK_DMG_VOLUME_NAME - The volume name of the generated disk<br />   image. Defaults to CPACK_PACKAGE_FILE_NAME.<br /></pre>
    <p><br /></p>
<pre>   CPACK_DMG_FORMAT - The disk image format. Common values are UDRO<br />   (UDIF read-only), UDZO (UDIF zlib-compressed) or UDBZ (UDIF<br />   bzip2-compressed). Refer to hdiutil(1) for more information on<br />   other available formats.<br /></pre>
    <p><br /></p>
<pre>   CPACK_DMG_DS_STORE - Path to a custom .DS_Store file which e.g.<br />   can be used to specify the Finder window position/geometry and<br />   layout (such as hidden toolbars, placement of the icons etc.).<br />   This file has to be generated by the Finder (either manually or<br />   through OSA-script) using a normal folder from which the .DS_Store<br />   file can then be extracted.<br /></pre>
    <p><br /></p>
<pre>   CPACK_DMG_BACKGROUND_IMAGE - Path to an image file which is to be<br />   used as the background for the Finder Window when the disk image<br />   is opened.  By default no background image is set. The background<br />   image is applied after applying the custom .DS_Store file.<br /></pre>
    <p><br /></p>
<pre>   CPACK_COMMAND_HDIUTIL - Path to the hdiutil(1) command used to<br />   operate on disk image files on Mac OS X. This variable can be used<br />   to override the automatically detected command (or specify its<br />   location if the auto-detection fails to find it.)<br /></pre>
    <p><br /></p>
<pre>   CPACK_COMMAND_SETFILE - Path to the SetFile(1) command used to set<br />   extended attributes on files and directories on Mac OS X. This<br />   variable can be used to override the automatically detected<br />   command (or specify its location if the auto-detection fails to<br />   find it.)<br /></pre>
    <p><br /></p>
<pre>   CPACK_COMMAND_REZ - Path to the Rez(1) command used to compile<br />   resources on Mac OS X. This variable can be used to override the<br />   automatically detected command (or specify its location if the<br />   auto-detection fails to find it.)<br /></pre>
    <p><br /></p>
<p>The following variable is specific to installers build on Mac OS X using PackageMaker:<br /></p>
<pre>   CPACK_OSX_PACKAGE_VERSION - The version of Mac OS X that the<br />   resulting PackageMaker archive should be compatible<br />   with. Different versions of Mac OS X support different<br />   features. For example, CPack can only build component-based<br />   installers for Mac OS X 10.4 or newer, and can only build<br />   installers that download component son-the-fly for Mac OS X 10.5<br />   or newer. If left blank, this value will be set to the minimum<br />   version of Mac OS X that supports the requested features. Set this<br />   variable to some value (e.g., 10.4) only if you want to guarantee<br />   that your installer will work on that version of Mac OS X, and<br />   don't mind missing extra features available in the installer<br />   shipping with later versions of Mac OS X.<br /></pre>
    <p><br /></p>
<p>The following variables are for advanced uses of CPack:<br /></p>
<pre>   CPACK_CMAKE_GENERATOR - What CMake generator should be used if the<br />   project is CMake project. Defaults to the value of CMAKE_GENERATOR;<br />   few users will want to change this setting.<br /></pre>
    <p><br /></p>
<pre>   CPACK_INSTALL_CMAKE_PROJECTS - List of four values that specify<br />   what project to install. The four values are: Build directory,<br />   Project Name, Project Component, Directory. If omitted, CPack will<br />   build an installer that installers everything.<br /></pre>
    <p><br /></p>
<pre>   CPACK_SYSTEM_NAME - System name, defaults to the value of<br />   ${CMAKE_SYSTEM_NAME}.<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_VERSION - Package full version, used internally. By<br />   default, this is built from CPACK_PACKAGE_VERSION_MAJOR,<br />   CPACK_PACKAGE_VERSION_MINOR, and CPACK_PACKAGE_VERSION_PATCH.<br /></pre>
    <p><br /></p>
<pre>   CPACK_TOPLEVEL_TAG - Directory for the installed files.<br /></pre>
    <p><br /></p>
<pre>   CPACK_INSTALL_COMMANDS - Extra commands to install components.<br /></pre>
    <p><br /></p>
<pre>   CPACK_INSTALLED_DIRECTORIES - Extra directories to install.<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:CPackBundle"><b><code>CPackBundle</code></b></a>: CPack Bundle generator (Mac OS X) specific options<br />
    <p><br /></p>
<p>Installers built on Mac OS X using the Bundle generator use the aforementioned DragNDrop variables, plus the following Bundle-specific parameters:<br /></p>
<pre>   CPACK_BUNDLE_NAME - The name of the generated bundle.  This<br />   appears in the OSX finder as the bundle name.  Required.<br /></pre>
    <p><br /></p>
<pre>   CPACK_BUNDLE_PLIST - Path to an OSX plist file that will be used<br />   as the Info.plist for the generated bundle.  This assumes that<br />   the caller has generated or specified their own Info.plist file.<br />   Required.<br /></pre>
    <p><br /></p>
<pre>   CPACK_BUNDLE_ICON - Path to an OSX icns file that will be used as<br />   the icon for the generated bundle.  This is the icon that appears<br />   in the OSX finder for the bundle, and in the OSX dock when the<br />   bundle is opened.  Required.<br /></pre>
    <p><br /></p>
<pre>   CPACK_BUNDLE_STARTUP_SCRIPT - Path to an executable or script that<br />   will be run whenever an end-user double-clicks the generated bundle<br />   in the OSX Finder.  Optional.<br /></pre>
    
  </li>
  <li>
    <a name="module:CPackComponent"><b><code>CPackComponent</code></b></a>: Build binary and source package installers<br />
    <p><br /></p>
<p>The CPackComponent module is the module which handles the component part of CPack. See CPack module for general information about CPack.<br /></p>
<p>For certain kinds of binary installers (including the graphical installers on Mac OS X and Windows), CPack generates installers that allow users to select individual application components to install. The contents of each of the components are identified by the COMPONENT argument of CMake's INSTALL command. These components can be annotated with user-friendly names and descriptions, inter-component dependencies, etc., and grouped in various ways to customize the resulting installer. See the cpack_add_* commands, described below, for more information about component-specific installations.<br /></p>
<p>Component-specific installation allows users to select specific sets of components to install during the install process. Installation components are identified by the COMPONENT argument of CMake's INSTALL commands, and should be further described by the following CPack commands:<br /></p>
<pre>   cpack_add_component - Describes a CPack installation component<br />   named by the COMPONENT argument to a CMake INSTALL command.<br /></pre>
    <p><br /></p>
<pre>     cpack_add_component(compname<br />                         [DISPLAY_NAME name]<br />                         [DESCRIPTION description]<br />                         [HIDDEN | REQUIRED | DISABLED ]<br />                         [GROUP group]<br />                         [DEPENDS comp1 comp2 ... ]<br />                         [INSTALL_TYPES type1 type2 ... ]<br />                         [DOWNLOADED]<br />                         [ARCHIVE_FILE filename])<br /></pre>
    <p><br /></p>
<pre>   The cmake_add_component command describes an installation<br />   component, which the user can opt to install or remove as part of<br />   the graphical installation process. compname is the name of the<br />   component, as provided to the COMPONENT argument of one or more<br />   CMake INSTALL commands.<br /></pre>
    <p><br /></p>
<pre>   DISPLAY_NAME is the displayed name of the component, used in<br />   graphical installers to display the component name. This value can<br />   be any string.<br /></pre>
    <p><br /></p>
<pre>   DESCRIPTION is an extended description of the component, used in<br />   graphical installers to give the user additional information about<br />   the component. Descriptions can span multiple lines using "\n" as<br />   the line separator. Typically, these descriptions should be no<br />   more than a few lines long.<br /></pre>
    <p><br /></p>
<pre>   HIDDEN indicates that this component will be hidden in the<br />   graphical installer, so that the user cannot directly change<br />   whether it is installed or not.<br /></pre>
    <p><br /></p>
<pre>   REQUIRED indicates that this component is required, and therefore<br />   will always be installed. It will be visible in the graphical<br />   installer, but it cannot be unselected. (Typically, required<br />   components are shown greyed out).<br /></pre>
    <p><br /></p>
<pre>   DISABLED indicates that this component should be disabled<br />   (unselected) by default. The user is free to select this component<br />   for installation, unless it is also HIDDEN.<br /></pre>
    <p><br /></p>
<pre>   DEPENDS lists the components on which this component depends. If<br />   this component is selected, then each of the components listed<br />   must also be selected. The dependency information is encoded<br />   within the installer itself, so that users cannot install<br />   inconsitent sets of components.<br /></pre>
    <p><br /></p>
<pre>   GROUP names the component group of which this component is a<br />   part. If not provided, the component will be a standalone<br />   component, not part of any component group. Component groups are<br />   described with the cpack_add_component_group command, detailed<br />   below.<br /></pre>
    <p><br /></p>
<pre>   INSTALL_TYPES lists the installation types of which this component<br />   is a part. When one of these installations types is selected, this<br />   component will automatically be selected. Installation types are<br />   described with the cpack_add_install_type command, detailed below.<br /></pre>
    <p><br /></p>
<pre>   DOWNLOADED indicates that this component should be downloaded<br />   on-the-fly by the installer, rather than packaged in with the<br />   installer itself. For more information, see the cpack_configure_downloads<br />   command.<br /></pre>
    <p><br /></p>
<pre>   ARCHIVE_FILE provides a name for the archive file created by CPack<br />   to be used for downloaded components. If not supplied, CPack will<br />   create a file with some name based on CPACK_PACKAGE_FILE_NAME and<br />   the name of the component. See cpack_configure_downloads for more<br />   information.<br /></pre>
    <p><br /></p>
<pre>   cpack_add_component_group - Describes a group of related CPack<br />   installation components.<br /></pre>
    <p><br /></p>
<pre>     cpack_add_component_group(groupname<br />                              [DISPLAY_NAME name]<br />                              [DESCRIPTION description]<br />                              [PARENT_GROUP parent]<br />                              [EXPANDED]<br />                              [BOLD_TITLE])<br /></pre>
    <p><br /></p>
<pre>   The cpack_add_component_group describes a group of installation<br />   components, which will be placed together within the listing of<br />   options. Typically, component groups allow the user to<br />   select/deselect all of the components within a single group via a<br />   single group-level option. Use component groups to reduce the<br />   complexity of installers with many options. groupname is an<br />   arbitrary name used to identify the group in the GROUP argument of<br />   the cpack_add_component command, which is used to place a<br />   component in a group. The name of the group must not conflict with<br />   the name of any component.<br /></pre>
    <p><br /></p>
<pre>   DISPLAY_NAME is the displayed name of the component group, used in<br />   graphical installers to display the component group name. This<br />   value can be any string.<br /></pre>
    <p><br /></p>
<pre>   DESCRIPTION is an extended description of the component group,<br />   used in graphical installers to give the user additional<br />   information about the components within that group. Descriptions<br />   can span multiple lines using "\n" as the line<br />   separator. Typically, these descriptions should be no more than a<br />   few lines long.<br /></pre>
    <p><br /></p>
<pre>   PARENT_GROUP, if supplied, names the parent group of this group.<br />   Parent groups are used to establish a hierarchy of groups,<br />   providing an arbitrary hierarchy of groups.<br /></pre>
    <p><br /></p>
<pre>   EXPANDED indicates that, by default, the group should show up as<br />   "expanded", so that the user immediately sees all of the<br />   components within the group. Otherwise, the group will initially<br />   show up as a single entry.<br /></pre>
    <p><br /></p>
<pre>   BOLD_TITLE indicates that the group title should appear in bold,<br />   to call the user's attention to the group.<br /></pre>
    <p><br /></p>
<pre>   cpack_add_install_type - Add a new installation type containing a<br />   set of predefined component selections to the graphical installer.<br /></pre>
    <p><br /></p>
<pre>     cpack_add_install_type(typename<br />                            [DISPLAY_NAME name])<br /></pre>
    <p><br /></p>
<pre>   The cpack_add_install_type command identifies a set of preselected<br />   components that represents a common use case for an<br />   application. For example, a "Developer" install type might include<br />   an application along with its header and library files, while an<br />   "End user" install type might just include the application's<br />   executable. Each component identifies itself with one or more<br />   install types via the INSTALL_TYPES argument to<br />   cpack_add_component.<br /></pre>
    <p><br /></p>
<pre>   DISPLAY_NAME is the displayed name of the install type, which will<br />   typically show up in a drop-down box within a graphical<br />   installer. This value can be any string.<br /></pre>
    <p><br /></p>
<pre>   cpack_configure_downloads - Configure CPack to download selected<br />   components on-the-fly as part of the installation process.<br /></pre>
    <p><br /></p>
<pre>     cpack_configure_downloads(site<br />                               [UPLOAD_DIRECTORY dirname]<br />                               [ALL]<br />                               [ADD_REMOVE|NO_ADD_REMOVE])<br /></pre>
    <p><br /></p>
<pre>   The cpack_configure_downloads command configures installation-time<br />   downloads of selected components. For each downloadable component,<br />   CPack will create an archive containing the contents of that<br />   component, which should be uploaded to the given site. When the<br />   user selects that component for installation, the installer will<br />   download and extract the component in place. This feature is<br />   useful for creating small installers that only download the<br />   requested components, saving bandwidth. Additionally, the<br />   installers are small enough that they will be installed as part of<br />   the normal installation process, and the "Change" button in<br />   Windows Add/Remove Programs control panel will allow one to add or<br />   remove parts of the application after the original<br />   installation. On Windows, the downloaded-components functionality<br />   requires the ZipDLL plug-in for NSIS, available at:<br /></pre>
    <p><br /></p>
<pre>     <a href="http://nsis.sourceforge.net/ZipDLL_plug-in">http://nsis.sourceforge.net/ZipDLL_plug-in</a><br /></pre>
    <p><br /></p>
<pre>   On Mac OS X, installers that download components on-the-fly can<br />   only be built and installed on system using Mac OS X 10.5 or<br />   later.<br /></pre>
    <p><br /></p>
<pre>   The site argument is a URL where the archives for downloadable<br />   components will reside, e.g., <a href="http://www.cmake.org/files/2.6.1/installer/">http://www.cmake.org/files/2.6.1/installer/</a><br />   All of the archives produced by CPack should be uploaded to that location.<br /></pre>
    <p><br /></p>
<pre>   UPLOAD_DIRECTORY is the local directory where CPack will create the<br />   various archives for each of the components. The contents of this<br />   directory should be uploaded to a location accessible by the URL given<br />   in the site argument. If omitted, CPack will use the directory<br />   CPackUploads inside the CMake binary directory to store the generated<br />   archives.<br /></pre>
    <p><br /></p>
<pre>   The ALL flag indicates that all components be downloaded. Otherwise, only<br />   those components explicitly marked as DOWNLOADED or that have a specified<br />   ARCHIVE_FILE will be downloaded. Additionally, the ALL option implies<br />   ADD_REMOVE (unless NO_ADD_REMOVE is specified).<br /></pre>
    <p><br /></p>
<pre>   ADD_REMOVE indicates that CPack should install a copy of the installer<br />   that can be called from Windows' Add/Remove Programs dialog (via the<br />   "Modify" button) to change the set of installed components. NO_ADD_REMOVE<br />   turns off this behavior. This option is ignored on Mac OS X.<br /></pre>
    
  </li>
  <li>
    <a name="module:CPackDeb"><b><code>CPackDeb</code></b></a>: The builtin (binary) CPack Deb generator (Unix only)<br />
    <p>CPackDeb may be used to create Deb package using CPack. CPackDeb is a CPack generator thus it uses the CPACK_XXX variables used by CPack : <a href="http://www.cmake.org/Wiki/CMake:CPackConfiguration.">http://www.cmake.org/Wiki/CMake:CPackConfiguration.</a> CPackDeb generator should work on any linux host but it will produce better deb package when Debian specific tools 'dpkg-xxx' are usable on the build system.<br /></p>
<p>CPackDeb has specific features which are controlled by the specifics CPACK_DEBIAN_XXX variables.You'll find a detailed usage on the wiki:<br /></p>
<pre>  <a href="http://www.cmake.org/Wiki/CMake:CPackPackageGenerators">http://www.cmake.org/Wiki/CMake:CPackPackageGenerators</a>#DEB_.28UNIX_only.29<br /></pre>
    <p>However as a handy reminder here comes the list of specific variables:<br /></p>
<p>CPACK_DEBIAN_PACKAGE_NAME<br /></p>
<pre>     Mandatory : YES<br />     Default   : CPACK_PACKAGE_NAME (lower case)<br />     The debian package summary<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_VERSION<br /></p>
<pre>     Mandatory : YES<br />     Default   : CPACK_PACKAGE_VERSION<br />     The debian package version<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_ARCHITECTURE<br /></p>
<pre>     Mandatory : YES<br />     Default   : Output of dpkg --print-architecture (or i386 if dpkg is not found)<br />     The debian package architecture<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_DEPENDS<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     May be used to set deb dependencies.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_MAINTAINER<br /></p>
<pre>     Mandatory : YES<br />     Default   : CPACK_PACKAGE_CONTACT<br />     The debian package maintainer<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_DESCRIPTION<br /></p>
<pre>     Mandatory : YES<br />     Default   : CPACK_PACKAGE_DESCRIPTION_SUMMARY<br />     The debian package description<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_SECTION<br /></p>
<pre>     Mandatory : YES<br />     Default   : 'devel'<br />     The debian package section<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_PRIORITY<br /></p>
<pre>     Mandatory : YES<br />     Default   : 'optional'<br />     The debian package priority<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_HOMEPAGE<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     The URL of the web site for this package<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_SHLIBDEPS<br /></p>
<pre>     Mandatory : NO<br />     Default   : OFF<br />     May be set to ON in order to use dpkg-shlibdeps to generate<br />     better package dependency list.<br />     You may need set CMAKE_INSTALL_RPATH toi appropriate value<br />     if you use this feature, because if you don't dpkg-shlibdeps<br />     may fail to find your own shared libs.<br />     See <a href="http://www.cmake.org/Wiki/CMake_RPATH_handling.">http://www.cmake.org/Wiki/CMake_RPATH_handling.</a><br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_DEBUG<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     May be set when invoking cpack in order to trace debug information<br />     during CPackDeb run.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_PREDEPENDS<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     This field is like Depends, except that it also forces dpkg to complete installation of<br />     the packages named before even starting the installation of the package which declares<br />     the pre-dependency.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_ENHANCES<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     This field is similar to Suggests but works in the opposite direction.<br />     It is used to declare that a package can enhance the functionality of another package.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_BREAKS<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     When one binary package declares that it breaks another, dpkg will refuse to allow the<br />     package which declares Breaks be installed unless the broken package is deconfigured first,<br />     and it will refuse to allow the broken package to be reconfigured.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_CONFLICTS<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     When one binary package declares a conflict with another using a Conflicts field,<br />     dpkg will refuse to allow them to be installed on the system at the same time.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_PROVIDES<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     A virtual package is one which appears in the Provides control field of another package.<br /></pre>
    <p>CPACK_DEBIAN_PACKAGE_REPLACES<br /></p>
<pre>     Mandatory : NO<br />     Default   : -<br />     see <a href="http://www.debian.org/doc/debian-policy/ch-relationships.html">http://www.debian.org/doc/debian-policy/ch-relationships.html</a>#s-binarydeps<br />     Packages can declare in their control file that they should overwrite<br />     files in certain other packages, or completely replace other packages.<br /></pre>
    
  </li>
  <li>
    <a name="module:CPackNSIS"><b><code>CPackNSIS</code></b></a>: CPack NSIS generator specific options<br />
    <p><br /></p>
<p>The following variables are specific to the graphical installers built on Windows using the Nullsoft Installation System.<br /></p>
<pre>   CPACK_PACKAGE_INSTALL_REGISTRY_KEY - Registry key used when<br />   installing this project.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_INSTALL_ROOT - The default installation directory presented<br />   to the end user by the NSIS installer is under this root dir. The full<br />   directory presented to the end user is:<br />   ${CPACK_NSIS_INSTALL_ROOT}/${CPACK_PACKAGE_INSTALL_DIRECTORY}<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_MUI_ICON - The icon file (.ico) for the generated<br />   install program.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_MUI_UNIICON - The icon file (.ico) for the generated<br />   uninstall program.<br /></pre>
    <p><br /></p>
<pre>   CPACK_PACKAGE_ICON - A branding image that will be displayed inside<br />   the installer.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_EXTRA_INSTALL_COMMANDS - Extra NSIS commands that will<br />   be added to the install Section.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS - Extra NSIS commands that will<br />   be added to the uninstall Section.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_COMPRESSOR - The arguments that will be passed to the<br />   NSIS SetCompressor command.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_MODIFY_PATH - If this is set to "ON", then an extra page<br />   will appear in the installer that will allow the user to choose<br />   whether the program directory should be added to the system PATH<br />   variable.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_DISPLAY_NAME - The display name string that appears in<br />   the Windows Add/Remove Program control panel<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_PACKAGE_NAME - The title displayed at the top of the<br />   installer.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_INSTALLED_ICON_NAME - A path to the executable that<br />   contains the installer icon.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_HELP_LINK - URL to a web site providing assistance in<br />   installing your application.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_URL_INFO_ABOUT - URL to a web site providing more<br />   information about your application.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_CONTACT - Contact information for questions and comments<br />   about the installation process.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_CREATE_ICONS_EXTRA - Additional NSIS commands for<br />   creating start menu shortcuts.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_DELETE_ICONS_EXTRA -Additional NSIS commands to<br />   uninstall start menu shortcuts.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_EXECUTABLES_DIRECTORY - Creating NSIS start menu links<br />   assumes that they are in 'bin' unless this variable is set.<br />   For example, you would set this to 'exec' if your executables are<br />   in an exec directory.<br /></pre>
    <p><br /></p>
<pre>   CPACK_NSIS_MUI_FINISHPAGE_RUN - Specify an executable to add an option<br />   to run on the finish page of the NSIS installer.<br /></pre>
    
  </li>
  <li>
    <a name="module:CPackRPM"><b><code>CPackRPM</code></b></a>: The builtin (binary) CPack RPM generator (Unix only)<br />
    <p>CPackRPM may be used to create RPM package using CPack. CPackRPM is a CPack generator thus it uses the CPACK_XXX variables used by CPack : <a href="http://www.cmake.org/Wiki/CMake:CPackConfiguration">http://www.cmake.org/Wiki/CMake:CPackConfiguration</a><br /></p>
<p>However CPackRPM has specific features which are controlled by the specifics CPACK_RPM_XXX variables. CPackRPM is a component aware generator so when CPACK_RPM_COMPONENT_INSTALL is ON some more CPACK_RPM_&lt;ComponentName&gt;_XXXX variables may be used in order to have component specific values. Note however that &lt;componentName&gt; refers to the **grouping name**. This may be either a component name or a component GROUP name. Usually those vars correspond to RPM spec file entities, one may find information about spec files here <a href="http://www.rpm.org/wiki/Docs.">http://www.rpm.org/wiki/Docs.</a> You'll find a detailed usage of CPackRPM on the wiki:<br /></p>
<pre>  <a href="http://www.cmake.org/Wiki/CMake:CPackPackageGenerators">http://www.cmake.org/Wiki/CMake:CPackPackageGenerators</a>#RPM_.28Unix_Only.29<br /></pre>
    <p>However as a handy reminder here comes the list of specific variables:<br /></p>
<pre>  CPACK_RPM_PACKAGE_SUMMARY<br />     Mandatory : YES<br />     Default   : CPACK_PACKAGE_DESCRIPTION_SUMMARY<br />     The RPM package summary<br />  CPACK_RPM_PACKAGE_NAME<br />     Mandatory : YES<br />     Default   : CPACK_PACKAGE_NAME<br />     The RPM package name<br />  CPACK_RPM_PACKAGE_VERSION<br />     Mandatory : YES<br />     Default   : CPACK_PACKAGE_VERSION<br />     The RPM package version<br />  CPACK_RPM_PACKAGE_ARCHITECTURE<br />     Mandatory : NO<br />     Default   : -<br />     The RPM package architecture. This may be set to "noarch" if you<br />     know you are building a noarch package.<br />  CPACK_RPM_PACKAGE_RELEASE<br />     Mandatory : YES<br />     Default   : 1<br />     The RPM package release. This is the numbering of the RPM package<br />     itself, i.e. the version of the packaging and not the version of the<br />     content (see CPACK_RPM_PACKAGE_VERSION). One may change the default<br />     value if the previous packaging was buggy and/or you want to put here<br />     a fancy Linux distro specific numbering.<br />  CPACK_RPM_PACKAGE_LICENSE<br />     Mandatory : YES<br />     Default   : "unknown"<br />     The RPM package license policy.<br />  CPACK_RPM_PACKAGE_GROUP<br />     Mandatory : YES<br />     Default   : "unknown"<br />     The RPM package group.<br />  CPACK_RPM_PACKAGE_VENDOR<br />     Mandatory : YES<br />     Default   : CPACK_PACKAGE_VENDOR if set or "unknown"<br />     The RPM package vendor.<br />  CPACK_RPM_PACKAGE_URL<br />     Mandatory : NO<br />     Default   : -<br />     The projects URL.<br />  CPACK_RPM_PACKAGE_DESCRIPTION<br />     Mandatory : YES<br />     Default   : CPACK_PACKAGE_DESCRIPTION_FILE if set or "no package description available"<br />  CPACK_RPM_COMPRESSION_TYPE<br />     Mandatory : NO<br />     Default   : -<br />     May be used to override RPM compression type to be used<br />     to build the RPM. For example some Linux distribution now default<br />     to lzma or xz compression whereas older cannot use such RPM.<br />     Using this one can enforce compression type to be used.<br />     Possible value are: lzma, xz, bzip2 and gzip.<br />  CPACK_RPM_PACKAGE_REQUIRES<br />     Mandatory : NO<br />     Default   : -<br />     May be used to set RPM dependencies (requires).<br />     Note that you must enclose the complete requires string between quotes,<br />     for example:<br />     set(CPACK_RPM_PACKAGE_REQUIRES "python &gt;= 2.5.0, cmake &gt;= 2.8")<br />     The required package list of an RPM file could be printed with<br />     rpm -qp --requires file.rpm<br />  CPACK_RPM_PACKAGE_SUGGESTS<br />     Mandatory : NO<br />     Default   : -<br />     May be used to set weak RPM dependencies (suggests).<br />     Note that you must enclose the complete requires string between quotes.<br />  CPACK_RPM_PACKAGE_PROVIDES<br />     Mandatory : NO<br />     Default   : -<br />     May be used to set RPM dependencies (provides).<br />     The provided package list of an RPM file could be printed with<br />     rpm -qp --provides file.rpm<br />  CPACK_RPM_PACKAGE_OBSOLETES<br />     Mandatory : NO<br />     Default   : -<br />     May be used to set RPM packages that are obsoleted by this one.<br />  CPACK_RPM_PACKAGE_RELOCATABLE<br />     Mandatory : NO<br />     Default   : CPACK_PACKAGE_RELOCATABLE<br />     If this variable is set to TRUE or ON CPackRPM will try<br />     to build a relocatable RPM package. A relocatable RPM may<br />     be installed using rpm --prefix or --relocate in order to<br />     install it at an alternate place see rpm(8).<br />     Note that currently this may fail if CPACK_SET_DESTDIR is set to ON.<br />     If CPACK_SET_DESTDIR is set then you will get a warning message<br />     but if there is file installed with absolute path you'll get<br />     unexpected behavior.<br />  CPACK_RPM_SPEC_INSTALL_POST [deprecated]<br />     Mandatory : NO<br />     Default   : -<br />     This way of specifying post-install script is deprecated use<br />     CPACK_RPM_POST_INSTALL_SCRIPT_FILE<br />     May be used to set an RPM post-install command inside the spec file.<br />     For example setting it to "/bin/true" may be used to prevent<br />     rpmbuild to strip binaries.<br />  CPACK_RPM_SPEC_MORE_DEFINE<br />     Mandatory : NO<br />     Default   : -<br />     May be used to add any %define lines to the generated spec file.<br />  CPACK_RPM_PACKAGE_DEBUG<br />     Mandatory : NO<br />     Default   : -<br />     May be set when invoking cpack in order to trace debug information<br />     during CPack RPM run. For example you may launch CPack like this<br />     cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM<br />  CPACK_RPM_USER_BINARY_SPECFILE<br />     Mandatory : NO<br />     Default   : -<br />     May be set by the user in order to specify a USER binary spec file<br />     to be used by CPackRPM instead of generating the file.<br />     The specified file will be processed by CONFIGURE_FILE( @ONLY).<br />  CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE<br />     Mandatory : NO<br />     Default   : -<br />     If set CPack will generate a template for USER specified binary<br />     spec file and stop with an error. For example launch CPack like this<br />     cpack -D CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE=1 -G RPM<br />     The user may then use this file in order to hand-craft is own<br />     binary spec file which may be used with CPACK_RPM_USER_BINARY_SPECFILE.<br />  CPACK_RPM_PRE_INSTALL_SCRIPT_FILE<br />  CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE<br />     Mandatory : NO<br />     Default   : -<br />     May be used to embed a pre (un)installation script in the spec file.<br />     The refered script file(s) will be read and directly<br />     put after the %pre or %preun section<br />     If CPACK_RPM_COMPONENT_INSTALL is set to ON the (un)install script for<br />     each component can be overriden with<br />     CPACK_RPM_&lt;COMPONENT&gt;_PRE_INSTALL_SCRIPT_FILE and<br />     CPACK_RPM_&lt;COMPONENT&gt;_PRE_UNINSTALL_SCRIPT_FILE<br />     One may verify which scriptlet has been included with<br />      rpm -qp --scripts  package.rpm<br />  CPACK_RPM_POST_INSTALL_SCRIPT_FILE<br />  CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE<br />     Mandatory : NO<br />     Default   : -<br />     May be used to embed a post (un)installation script in the spec file.<br />     The refered script file(s) will be read and directly<br />     put after the %post or %postun section<br />     If CPACK_RPM_COMPONENT_INSTALL is set to ON the (un)install script for<br />     each component can be overriden with<br />     CPACK_RPM_&lt;COMPONENT&gt;_POST_INSTALL_SCRIPT_FILE and<br />     CPACK_RPM_&lt;COMPONENT&gt;_POST_UNINSTALL_SCRIPT_FILE<br />     One may verify which scriptlet has been included with<br />      rpm -qp --scripts  package.rpm<br />  CPACK_RPM_USER_FILELIST<br />  CPACK_RPM_&lt;COMPONENT&gt;_USER_FILELIST<br />     Mandatory : NO<br />     Default   : -<br />     May be used to explicitely specify %(&lt;directive&gt;) file line<br />     in the spec file. Like %config(noreplace) or any other directive<br />     that be found in the %files section. Since CPackRPM is generating<br />     the list of files (and directories) the user specified files of<br />     the CPACK_RPM_&lt;COMPONENT&gt;_USER_FILELIST list will be removed from the generated list.<br />  CPACK_RPM_CHANGELOG_FILE<br />     Mandatory : NO<br />     Default   : -<br />     May be used to embed a changelog in the spec file.<br />     The refered file will be read and directly put after the %changelog<br />     section.<br /></pre>
    
  </li>
  <li>
    <a name="module:CTest"><b><code>CTest</code></b></a>: Configure a project for testing with CTest/CDash<br />
    <p>Include this module in the top CMakeLists.txt file of a project to enable testing with CTest and dashboard submissions to CDash:<br /></p>
<pre>   project(MyProject)<br />   ...<br />   include(CTest)<br /></pre>
    <p>The module automatically creates a BUILD_TESTING option that selects whether to enable testing support (ON by default).  After including the module, use code like<br /></p>
<pre>   if(BUILD_TESTING)<br />     # ... CMake code to create tests ...<br />   endif()<br /></pre>
    <p>to creating tests when testing is enabled.<br /></p>
<p>To enable submissions to a CDash server, create a CTestConfig.cmake file at the top of the project with content such as<br /></p>
<pre>   set(CTEST_PROJECT_NAME "MyProject")<br />   set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")<br />   set(CTEST_DROP_METHOD "http")<br />   set(CTEST_DROP_SITE "my.cdash.org")<br />   set(CTEST_DROP_LOCATION "/submit.php?project=MyProject")<br />   set(CTEST_DROP_SITE_CDASH TRUE)<br /></pre>
    <p>(the CDash server can provide the file to a project administrator who configures 'MyProject'). Settings in the config file are shared by both this CTest module and the CTest command-line tool's dashboard script mode (ctest -S).<br /></p>
<p>While building a project for submission to CDash, CTest scans the build output for errors and warnings and reports them with surrounding context from the build log.  This generic approach works for all build tools, but does not give details about the command invocation that produced a given problem.  One may get more detailed reports by adding<br /></p>
<pre>   set(CTEST_USE_LAUNCHERS 1)<br /></pre>
    <p>to the CTestConfig.cmake file.  When this option is enabled, the CTest module tells CMake's Makefile generators to invoke every command in the generated build system through a CTest launcher program.  (Currently the CTEST_USE_LAUNCHERS option is ignored on non-Makefile generators.)  During a manual build each launcher transparently runs the command it wraps.  During a CTest-driven build for submission to CDash each launcher reports detailed information when its command fails or warns. (Setting CTEST_USE_LAUNCHERS in CTestConfig.cmake is convenient, but also adds the launcher overhead even for manual builds.  One may instead set it in a CTest dashboard script and add it to the CMake cache for the build tree.)</p>

  </li>
  <li>
    <a name="module:CTestScriptMode"><b><code>CTestScriptMode</code></b></a>:  <br />
    <p>This file is read by ctest in script mode (-S)</p>

  </li>
  <li>
    <a name="module:CheckCCompilerFlag"><b><code>CheckCCompilerFlag</code></b></a>: Check whether the C compiler supports a given flag.<br />
    <p>CHECK_C_COMPILER_FLAG(&lt;flag&gt; &lt;var&gt;)<br /></p>
<pre>  &lt;flag&gt; - the compiler flag<br />  &lt;var&gt;  - variable to store the result<br /></pre>
    <p>This internally calls the check_c_source_compiles macro. See help for CheckCSourceCompiles for a listing of variables that can modify the build.</p>

  </li>
  <li>
    <a name="module:CheckCSourceCompiles"><b><code>CheckCSourceCompiles</code></b></a>: Check if given C source compiles and links into an executable<br />
    <p>CHECK_C_SOURCE_COMPILES(&lt;code&gt; &lt;var&gt; [FAIL_REGEX &lt;fail-regex&gt;])<br /></p>
<pre>  &lt;code&gt;       - source code to try to compile, must define 'main'<br />  &lt;var&gt;        - variable to store whether the source code compiled<br />  &lt;fail-regex&gt; - fail if test output matches this regex<br /></pre>
    <p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckCSourceRuns"><b><code>CheckCSourceRuns</code></b></a>: Check if the given C source code compiles and runs.<br />
    <p>CHECK_C_SOURCE_RUNS(&lt;code&gt; &lt;var&gt;)<br /></p>
<pre>  &lt;code&gt;   - source code to try to compile<br />  &lt;var&gt;    - variable to store the result<br />             (1 for success, empty for failure)<br /></pre>
    <p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckCXXCompilerFlag"><b><code>CheckCXXCompilerFlag</code></b></a>: Check whether the CXX compiler supports a given flag.<br />
    <p>CHECK_CXX_COMPILER_FLAG(&lt;flag&gt; &lt;var&gt;)<br /></p>
<pre>  &lt;flag&gt; - the compiler flag<br />  &lt;var&gt;  - variable to store the result<br /></pre>
    <p>This internally calls the check_cxx_source_compiles macro.  See help for CheckCXXSourceCompiles for a listing of variables that can modify the build.</p>

  </li>
  <li>
    <a name="module:CheckCXXSourceCompiles"><b><code>CheckCXXSourceCompiles</code></b></a>: Check if given C++ source compiles and links into an executable<br />
    <p>CHECK_CXX_SOURCE_COMPILES(&lt;code&gt; &lt;var&gt; [FAIL_REGEX &lt;fail-regex&gt;])<br /></p>
<pre>  &lt;code&gt;       - source code to try to compile, must define 'main'<br />  &lt;var&gt;        - variable to store whether the source code compiled<br />  &lt;fail-regex&gt; - fail if test output matches this regex<br /></pre>
    <p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckCXXSourceRuns"><b><code>CheckCXXSourceRuns</code></b></a>: Check if the given C++ source code compiles and runs.<br />
    <p>CHECK_CXX_SOURCE_RUNS(&lt;code&gt; &lt;var&gt;)<br /></p>
<pre>  &lt;code&gt;   - source code to try to compile<br />  &lt;var&gt;    - variable to store the result<br />             (1 for success, empty for failure)<br /></pre>
    <p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckCXXSymbolExists"><b><code>CheckCXXSymbolExists</code></b></a>: Check if a symbol exists as a function, variable, or macro in C++<br />
    <p>CHECK_CXX_SYMBOL_EXISTS(&lt;symbol&gt; &lt;files&gt; &lt;variable&gt;)<br /></p>
<p>Check that the &lt;symbol&gt; is available after including given header &lt;files&gt; and store the result in a &lt;variable&gt;.  Specify the list of files in one argument as a semicolon-separated list. CHECK_CXX_SYMBOL_EXISTS() can be used to check in C++ files, as opposed to CHECK_SYMBOL_EXISTS(), which works only for C.<br /></p>
<p>If the header files define the symbol as a macro it is considered available and assumed to work.  If the header files declare the symbol as a function or variable then the symbol must also be available for linking.  If the symbol is a type or enum value it will not be recognized (consider using CheckTypeSize or CheckCSourceCompiles).<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckFortranFunctionExists"><b><code>CheckFortranFunctionExists</code></b></a>: macro which checks if the Fortran function exists<br />
    <p>CHECK_FORTRAN_FUNCTION_EXISTS(FUNCTION VARIABLE)<br /></p>
<pre>  FUNCTION - the name of the Fortran function<br />  VARIABLE - variable to store the result<br /></pre>
    <p><br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckFunctionExists"><b><code>CheckFunctionExists</code></b></a>: Check if a C function can be linked<br />
    <p>CHECK_FUNCTION_EXISTS(&lt;function&gt; &lt;variable&gt;)<br /></p>
<p>Check that the &lt;function&gt; is provided by libraries on the system and store the result in a &lt;variable&gt;.  This does not verify that any system header file declares the function, only that it can be found at link time (considure using CheckSymbolExists).<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckIncludeFile"><b><code>CheckIncludeFile</code></b></a>: macro which checks the include file exists.<br />
    <p>CHECK_INCLUDE_FILE(INCLUDE VARIABLE)<br /></p>
<pre>  INCLUDE  - name of include file<br />  VARIABLE - variable to return result<br />   <br /></pre>
    <p>an optional third argument is the CFlags to add to the compile line  or you can use CMAKE_REQUIRED_FLAGS<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:CheckIncludeFileCXX"><b><code>CheckIncludeFileCXX</code></b></a>: Check if the include file exists.<br />
    <pre>  CHECK_INCLUDE_FILE_CXX(INCLUDE VARIABLE)<br /></pre>
    <p><br /></p>
<pre>  INCLUDE  - name of include file<br />  VARIABLE - variable to return result<br />  <br /></pre>
    <p>An optional third argument is the CFlags to add to the compile line  or you can use CMAKE_REQUIRED_FLAGS.<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:CheckIncludeFiles"><b><code>CheckIncludeFiles</code></b></a>: Check if the files can be included<br />
    <p><br /></p>
<p>CHECK_INCLUDE_FILES(INCLUDE VARIABLE)<br /></p>
<pre>  INCLUDE  - list of files to include<br />  VARIABLE - variable to return result<br /></pre>
    <p><br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckLibraryExists"><b><code>CheckLibraryExists</code></b></a>: Check if the function exists.<br />
    <p>CHECK_LIBRARY_EXISTS (LIBRARY FUNCTION LOCATION VARIABLE)<br /></p>
<pre>  LIBRARY  - the name of the library you are looking for<br />  FUNCTION - the name of the function<br />  LOCATION - location where the library should be found<br />  VARIABLE - variable to store the result<br /></pre>
    <p><br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckPrototypeDefinition"><b><code>CheckPrototypeDefinition</code></b></a>: Check if the protoype we expect is correct.<br />
    <p>check_prototype_definition(FUNCTION PROTOTYPE RETURN HEADER VARIABLE)<br /></p>
<pre>  FUNCTION - The name of the function (used to check if prototype exists)<br />  PROTOTYPE- The prototype to check.<br />  RETURN - The return value of the function.<br />  HEADER - The header files required.<br />  VARIABLE - The variable to store the result.<br /></pre>
    <p>Example:<br /></p>
<pre>  check_prototype_definition(getpwent_r<br />   "struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)"<br />   "NULL"<br />   "unistd.h;pwd.h"<br />   SOLARIS_GETPWENT_R)<br /></pre>
    <p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckStructHasMember"><b><code>CheckStructHasMember</code></b></a>: Check if the given struct or class has the specified member variable<br />
    <p>CHECK_STRUCT_HAS_MEMBER (STRUCT MEMBER HEADER VARIABLE)<br /></p>
<pre>  STRUCT - the name of the struct or class you are interested in<br />  MEMBER - the member which existence you want to check<br />  HEADER - the header(s) where the prototype should be declared<br />  VARIABLE - variable to store the result<br /></pre>
    <p><br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br /></pre>
    <p><br /></p>
<p>Example: CHECK_STRUCT_HAS_MEMBER("struct timeval" tv_sec sys/select.h HAVE_TIMEVAL_TV_SEC)</p>

  </li>
  <li>
    <a name="module:CheckSymbolExists"><b><code>CheckSymbolExists</code></b></a>: Check if a symbol exists as a function, variable, or macro<br />
    <p>CHECK_SYMBOL_EXISTS(&lt;symbol&gt; &lt;files&gt; &lt;variable&gt;)<br /></p>
<p>Check that the &lt;symbol&gt; is available after including given header &lt;files&gt; and store the result in a &lt;variable&gt;.  Specify the list of files in one argument as a semicolon-separated list.<br /></p>
<p>If the header files define the symbol as a macro it is considered available and assumed to work.  If the header files declare the symbol as a function or variable then the symbol must also be available for linking.  If the symbol is a type or enum value it will not be recognized (consider using CheckTypeSize or CheckCSourceCompiles). If the check needs to be done in C++, consider using CHECK_CXX_SYMBOL_EXISTS(), which does the same as CHECK_SYMBOL_EXISTS(), but in C++.<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckTypeSize"><b><code>CheckTypeSize</code></b></a>: Check sizeof a type<br />
    <pre>  CHECK_TYPE_SIZE(TYPE VARIABLE [BUILTIN_TYPES_ONLY])<br /></pre>
    <p>Check if the type exists and determine its size. On return, "HAVE_${VARIABLE}" holds the existence of the type, and "${VARIABLE}" holds one of the following:<br /></p>
<pre>   &lt;size&gt; = type has non-zero size &lt;size&gt;<br />   "0"    = type has arch-dependent size (see below)<br />   ""     = type does not exist<br /></pre>
    <p>Furthermore, the variable "${VARIABLE}_CODE" holds C preprocessor code to define the macro "${VARIABLE}" to the size of the type, or leave the macro undefined if the type does not exist.<br /></p>
<p>The variable "${VARIABLE}" may be "0" when CMAKE_OSX_ARCHITECTURES has multiple architectures for building OS X universal binaries. This indicates that the type size varies across architectures. In this case "${VARIABLE}_CODE" contains C preprocessor tests mapping from each architecture macro to the corresponding type size. The list of architecture macros is stored in "${VARIABLE}_KEYS", and the value for each key is stored in "${VARIABLE}-${KEY}".<br /></p>
<p>If the BUILTIN_TYPES_ONLY option is not given, the macro checks for headers &lt;sys/types.h&gt;, &lt;stdint.h&gt;, and &lt;stddef.h&gt;, and saves results in HAVE_SYS_TYPES_H, HAVE_STDINT_H, and HAVE_STDDEF_H.  The type size check automatically includes the available headers, thus supporting checks of types defined in the headers.<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_INCLUDES = list of include directories<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br />  CMAKE_EXTRA_INCLUDE_FILES = list of extra headers to include<br /></pre>
    
  </li>
  <li>
    <a name="module:CheckVariableExists"><b><code>CheckVariableExists</code></b></a>: Check if the variable exists.<br />
    <pre>  CHECK_VARIABLE_EXISTS(VAR VARIABLE)<br />  <br />  VAR      - the name of the variable<br />  VARIABLE - variable to store the result<br /></pre>
    <p><br /></p>
<p>This macro is only for C variables.<br /></p>
<p>The following variables may be set before calling this macro to modify the way the check is run:<br /></p>
<pre>  CMAKE_REQUIRED_FLAGS = string of compile command line flags<br />  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)<br />  CMAKE_REQUIRED_LIBRARIES = list of libraries to link<br /></pre>
    
  </li>
  <li>
    <a name="module:Dart"><b><code>Dart</code></b></a>: Configure a project for testing with CTest or old Dart Tcl Client<br />
    <p>This file is the backwards-compatibility version of the CTest module. It supports using the old Dart 1 Tcl client for driving dashboard submissions as well as testing with CTest.  This module should be included in the CMakeLists.txt file at the top of a project.  Typical usage:<br /></p>
<pre>  INCLUDE(Dart)<br />  IF(BUILD_TESTING)<br />    # ... testing related CMake code ...<br />  ENDIF(BUILD_TESTING)<br /></pre>
    <p>The BUILD_TESTING option is created by the Dart module to determine whether testing support should be enabled.  The default is ON.</p>

  </li>
  <li>
    <a name="module:DeployQt4"><b><code>DeployQt4</code></b></a>: Functions to help assemble a standalone Qt4 executable.<br />
    <p>A collection of CMake utility functions useful for deploying Qt4 executables.<br /></p>
<p>The following functions are provided by this module:<br /></p>
<pre>   write_qt4_conf<br />   resolve_qt4_paths<br />   fixup_qt4_executable<br />   install_qt4_plugin_path<br />   install_qt4_plugin<br />   install_qt4_executable<br /></pre>
    <p>Requires CMake 2.6 or greater because it uses function and PARENT_SCOPE. Also depends on BundleUtilities.cmake.<br /></p>
<pre>  WRITE_QT4_CONF(&lt;qt_conf_dir&gt; &lt;qt_conf_contents&gt;)<br /></pre>
    <p>Writes a qt.conf file with the &lt;qt_conf_contents&gt; into &lt;qt_conf_dir&gt;.<br /></p>
<pre>  RESOLVE_QT4_PATHS(&lt;paths_var&gt; [&lt;executable_path&gt;])<br /></pre>
    <p>Loop through &lt;paths_var&gt; list and if any don't exist resolve them relative to the &lt;executable_path&gt; (if supplied) or the CMAKE_INSTALL_PREFIX.<br /></p>
<pre>  FIXUP_QT4_EXECUTABLE(&lt;executable&gt; [&lt;qtplugins&gt; &lt;libs&gt; &lt;dirs&gt; &lt;plugins_dir&gt; &lt;request_qt_conf&gt;])<br /></pre>
    <p>Copies Qt plugins, writes a Qt configuration file (if needed) and fixes up a Qt4 executable using BundleUtilities so it is standalone and can be drag-and-drop copied to another machine as long as all of the system libraries are compatible.<br /></p>
<p>&lt;executable&gt; should point to the executable to be fixed-up.<br /></p>
<p>&lt;qtplugins&gt; should contain a list of the names or paths of any Qt plugins to be installed.<br /></p>
<p>&lt;libs&gt; will be passed to BundleUtilities and should be a list of any already installed plugins, libraries or executables to also be fixed-up.<br /></p>
<p>&lt;dirs&gt; will be passed to BundleUtilities and should contain and directories to be searched to find library dependencies.<br /></p>
<p>&lt;plugins_dir&gt; allows an custom plugins directory to be used.<br /></p>
<p>&lt;request_qt_conf&gt; will force a qt.conf file to be written even if not needed.<br /></p>
<pre>  INSTALL_QT4_PLUGIN_PATH(plugin executable copy installed_plugin_path_var &lt;plugins_dir&gt; &lt;component&gt; &lt;configurations&gt;)<br /></pre>
    <p>Install (or copy) a resolved &lt;plugin&gt; to the default plugins directory (or &lt;plugins_dir&gt;) relative to &lt;executable&gt; and store the result in &lt;installed_plugin_path_var&gt;.<br /></p>
<p>If &lt;copy&gt; is set to TRUE then the plugins will be copied rather than installed. This is to allow this module to be used at CMake time rather than install time.<br /></p>
<p>If &lt;component&gt; is set then anything installed will use this COMPONENT.<br /></p>
<pre>  INSTALL_QT4_PLUGIN(plugin executable copy installed_plugin_path_var &lt;plugins_dir&gt; &lt;component&gt;)<br /></pre>
    <p>Install (or copy) an unresolved &lt;plugin&gt; to the default plugins directory (or &lt;plugins_dir&gt;) relative to &lt;executable&gt; and store the result in &lt;installed_plugin_path_var&gt;. See documentation of INSTALL_QT4_PLUGIN_PATH.<br /></p>
<pre>  INSTALL_QT4_EXECUTABLE(&lt;executable&gt; [&lt;qtplugins&gt; &lt;libs&gt; &lt;dirs&gt; &lt;plugins_dir&gt; &lt;request_qt_conf&gt; &lt;component&gt;])<br /></pre>
    <p>Installs Qt plugins, writes a Qt configuration file (if needed) and fixes up a Qt4 executable using BundleUtilities so it is standalone and can be drag-and-drop copied to another machine as long as all of the system libraries are compatible. The executable will be fixed-up at install time. &lt;component&gt; is the COMPONENT used for bundle fixup and plugin installation. See documentation of FIXUP_QT4_BUNDLE.</p>

  </li>
  <li>
    <a name="module:Documentation"><b><code>Documentation</code></b></a>: DocumentationVTK.cmake<br />
    <p>This file provides support for the VTK documentation framework. It relies on several tools (Doxygen, Perl, etc).</p>

  </li>
  <li>
    <a name="module:ExternalProject"><b><code>ExternalProject</code></b></a>: Create custom targets to build projects in external trees<br />
    <p>The 'ExternalProject_Add' function creates a custom target to drive download, update/patch, configure, build, install and test steps of an external project:<br /></p>
<pre>  ExternalProject_Add(&lt;name&gt;    # Name for custom target<br />    [DEPENDS projects...]       # Targets on which the project depends<br />    [PREFIX dir]                # Root dir for entire project<br />    [LIST_SEPARATOR sep]        # Sep to be replaced by ; in cmd lines<br />    [TMP_DIR dir]               # Directory to store temporary files<br />    [STAMP_DIR dir]             # Directory to store step timestamps<br />   #--Download step--------------<br />    [DOWNLOAD_DIR dir]          # Directory to store downloaded files<br />    [DOWNLOAD_COMMAND cmd...]   # Command to download source tree<br />    [CVS_REPOSITORY cvsroot]    # CVSROOT of CVS repository<br />    [CVS_MODULE mod]            # Module to checkout from CVS repo<br />    [CVS_TAG tag]               # Tag to checkout from CVS repo<br />    [SVN_REPOSITORY url]        # URL of Subversion repo<br />    [SVN_REVISION rev]          # Revision to checkout from Subversion repo<br />    [SVN_USERNAME john ]        # Username for Subversion checkout and update<br />    [SVN_PASSWORD doe ]         # Password for Subversion checkout and update<br />    [SVN_TRUST_CERT 1 ]         # Trust the Subversion server site certificate<br />    [GIT_REPOSITORY url]        # URL of git repo<br />    [GIT_TAG tag]               # Git branch name, commit id or tag<br />    [URL /.../src.tgz]          # Full path or URL of source<br />    [URL_MD5 md5]               # MD5 checksum of file at URL<br />    [TIMEOUT seconds]           # Time allowed for file download operations<br />   #--Update/Patch step----------<br />    [UPDATE_COMMAND cmd...]     # Source work-tree update command<br />    [PATCH_COMMAND cmd...]      # Command to patch downloaded source<br />   #--Configure step-------------<br />    [SOURCE_DIR dir]            # Source dir to be used for build<br />    [CONFIGURE_COMMAND cmd...]  # Build tree configuration command<br />    [CMAKE_COMMAND /.../cmake]  # Specify alternative cmake executable<br />    [CMAKE_GENERATOR gen]       # Specify generator for native build<br />    [CMAKE_ARGS args...]        # Arguments to CMake command line<br />    [CMAKE_CACHE_ARGS args...]  # Initial cache arguments, of the form -Dvar:string=on<br />   #--Build step-----------------<br />    [BINARY_DIR dir]            # Specify build dir location<br />    [BUILD_COMMAND cmd...]      # Command to drive the native build<br />    [BUILD_IN_SOURCE 1]         # Use source dir for build dir<br />   #--Install step---------------<br />    [INSTALL_DIR dir]           # Installation prefix<br />    [INSTALL_COMMAND cmd...]    # Command to drive install after build<br />   #--Test step------------------<br />    [TEST_BEFORE_INSTALL 1]     # Add test step executed before install step<br />    [TEST_AFTER_INSTALL 1]      # Add test step executed after install step<br />    [TEST_COMMAND cmd...]       # Command to drive test<br />   #--Output logging-------------<br />    [LOG_DOWNLOAD 1]            # Wrap download in script to log output<br />    [LOG_UPDATE 1]              # Wrap update in script to log output<br />    [LOG_CONFIGURE 1]           # Wrap configure in script to log output<br />    [LOG_BUILD 1]               # Wrap build in script to log output<br />    [LOG_TEST 1]                # Wrap test in script to log output<br />    [LOG_INSTALL 1]             # Wrap install in script to log output<br />   #--Custom targets-------------<br />    [STEP_TARGETS st1 st2 ...]  # Generate custom targets for these steps<br />    )<br /></pre>
    <p>The *_DIR options specify directories for the project, with default directories computed as follows. If the PREFIX option is given to ExternalProject_Add() or the EP_PREFIX directory property is set, then an external project is built and installed under the specified prefix:<br /></p>
<pre>   TMP_DIR      = &lt;prefix&gt;/tmp<br />   STAMP_DIR    = &lt;prefix&gt;/src/&lt;name&gt;-stamp<br />   DOWNLOAD_DIR = &lt;prefix&gt;/src<br />   SOURCE_DIR   = &lt;prefix&gt;/src/&lt;name&gt;<br />   BINARY_DIR   = &lt;prefix&gt;/src/&lt;name&gt;-build<br />   INSTALL_DIR  = &lt;prefix&gt;<br /></pre>
    <p>Otherwise, if the EP_BASE directory property is set then components of an external project are stored under the specified base:<br /></p>
<pre>   TMP_DIR      = &lt;base&gt;/tmp/&lt;name&gt;<br />   STAMP_DIR    = &lt;base&gt;/Stamp/&lt;name&gt;<br />   DOWNLOAD_DIR = &lt;base&gt;/Download/&lt;name&gt;<br />   SOURCE_DIR   = &lt;base&gt;/Source/&lt;name&gt;<br />   BINARY_DIR   = &lt;base&gt;/Build/&lt;name&gt;<br />   INSTALL_DIR  = &lt;base&gt;/Install/&lt;name&gt;<br /></pre>
    <p>If no PREFIX, EP_PREFIX, or EP_BASE is specified then the default is to set PREFIX to "&lt;name&gt;-prefix". Relative paths are interpreted with respect to the build directory corresponding to the source directory in which ExternalProject_Add is invoked.<br /></p>
<p>If SOURCE_DIR is explicitly set to an existing directory the project will be built from it. Otherwise a download step must be specified using one of the DOWNLOAD_COMMAND, CVS_*, SVN_*, or URL options. The URL option may refer locally to a directory or source tarball, or refer to a remote tarball (e.g. <a href="http://.../src.tgz">http://.../src.tgz</a>).<br /></p>
<p>The 'ExternalProject_Add_Step' function adds a custom step to an external project:<br /></p>
<pre>  ExternalProject_Add_Step(&lt;name&gt; &lt;step&gt; # Names of project and custom step<br />    [COMMAND cmd...]        # Command line invoked by this step<br />    [COMMENT "text..."]     # Text printed when step executes<br />    [DEPENDEES steps...]    # Steps on which this step depends<br />    [DEPENDERS steps...]    # Steps that depend on this step<br />    [DEPENDS files...]      # Files on which this step depends<br />    [ALWAYS 1]              # No stamp file, step always runs<br />    [WORKING_DIRECTORY dir] # Working directory for command<br />    [LOG 1]                 # Wrap step in script to log output<br />    )<br /></pre>
    <p>The command line, comment, and working directory of every standard and custom step is processed to replace tokens &lt;SOURCE_DIR&gt;, &lt;BINARY_DIR&gt;, &lt;INSTALL_DIR&gt;, and &lt;TMP_DIR&gt; with corresponding property values.<br /></p>
<p>The 'ExternalProject_Get_Property' function retrieves external project target properties:<br /></p>
<pre>  ExternalProject_Get_Property(&lt;name&gt; [prop1 [prop2 [...]]])<br /></pre>
    <p>It stores property values in variables of the same name. Property names correspond to the keyword argument names of 'ExternalProject_Add'.<br /></p>
<p>The 'ExternalProject_Add_StepTargets' function generates custom targets for the steps listed:<br /></p>
<pre>  ExternalProject_Add_StepTargets(&lt;name&gt; [step1 [step2 [...]]])<br /></pre>
    <p><br /></p>
<p>If STEP_TARGETS is set then ExternalProject_Add_StepTargets is automatically called at the end of matching calls to ExternalProject_Add_Step. Pass STEP_TARGETS explicitly to individual ExternalProject_Add calls, or implicitly to all ExternalProject_Add calls by setting the directory property EP_STEP_TARGETS.<br /></p>
<p>If STEP_TARGETS is not set, clients may still manually call ExternalProject_Add_StepTargets after calling ExternalProject_Add or ExternalProject_Add_Step.<br /></p>
<p>This functionality is provided to make it easy to drive the steps independently of each other by specifying targets on build command lines. For example, you may be submitting to a sub-project based dashboard, where you want to drive the configure portion of the build, then submit to the dashboard, followed by the build portion, followed by tests. If you invoke a custom target that depends on a step halfway through the step dependency chain, then all the previous steps will also run to ensure everything is up to date.<br /></p>
<p>For example, to drive configure, build and test steps independently for each ExternalProject_Add call in your project, write the following line prior to any ExternalProject_Add calls in your CMakeLists file:<br /></p>
<pre>   set_property(DIRECTORY PROPERTY EP_STEP_TARGETS configure build test)<br /></pre>
    
  </li>
  <li>
    <a name="module:FeatureSummary"><b><code>FeatureSummary</code></b></a>: Macros for generating a summary of enabled/disabled features<br />
    <p><br /></p>
<p>This module provides the macros feature_summary(), set_package_properties() and add_feature_info(). For compatibility it also still provides set_package_info(), set_feature_info(), print_enabled_features() and print_disabled_features().<br /></p>
<p>These macros can be used to generate a summary of enabled and disabled packages and/or feature for a build tree:<br /></p>
<pre>    -- The following OPTIONAL packages have been found:<br />    LibXml2 (required version &gt;= 2.4) , XML processing library. , &lt;<a href="http://xmlsoft.org">http://xmlsoft.org</a>&gt;<br />       * Enables HTML-import in MyWordProcessor<br />       * Enables odt-export in MyWordProcessor<br />    PNG , A PNG image library. , &lt;<a href="http://www.libpng.org/pub/png/">http://www.libpng.org/pub/png/</a>&gt;<br />       * Enables saving screenshots<br />    -- The following OPTIONAL packages have not been found:<br />    Lua51 , The Lua scripting language. , &lt;<a href="http://www.lua.org">http://www.lua.org</a>&gt;<br />       * Enables macros in MyWordProcessor<br />    Foo , Foo provides cool stuff.<br /></pre>
    <p><br /></p>
<p><br /></p>
<pre>    FEATURE_SUMMARY( [FILENAME &lt;file&gt;]<br />                     [APPEND]<br />                     [VAR &lt;variable_name&gt;]<br />                     [INCLUDE_QUIET_PACKAGES]<br />                     [FATAL_ON_MISSING_REQUIRED_PACKAGES]<br />                     [DESCRIPTION "Found packages:"]<br />                     WHAT (ALL | PACKAGES_FOUND | PACKAGES_NOT_FOUND<br />                          | ENABLED_FEATURES | DISABLED_FEATURES]<br />                   )<br /></pre>
    <p><br /></p>
<p>The FEATURE_SUMMARY() macro can be used to print information about enabled or disabled packages or features of a project. By default, only the names of the features/packages will be printed and their required version when one was specified. Use SET_PACKAGE_PROPERTIES() to add more useful information, like e.g. a download URL for the respective package or their purpose in the project.<br /></p>
<p>The WHAT option is the only mandatory option. Here you specify what information will be printed:<br /></p>
<pre>    ALL: print everything<br />    ENABLED_FEATURES: the list of all features which are enabled<br />    DISABLED_FEATURES: the list of all features which are disabled<br />    PACKAGES_FOUND: the list of all packages which have been found<br />    PACKAGES_NOT_FOUND: the list of all packages which have not been found<br />    OPTIONAL_PACKAGES_FOUND: only those packages which have been found which have the type OPTIONAL<br />    OPTIONAL_PACKAGES_NOT_FOUND: only those packages which have not been found which have the type OPTIONAL<br />    RECOMMENDED_PACKAGES_FOUND: only those packages which have been found which have the type RECOMMENDED<br />    RECOMMENDED_PACKAGES_NOT_FOUND: only those packages which have not been found which have the type RECOMMENDED<br />    REQUIRED_PACKAGES_FOUND: only those packages which have been found which have the type REQUIRED<br />    REQUIRED_PACKAGES_NOT_FOUND: only those packages which have not been found which have the type REQUIRED<br />    RUNTIME_PACKAGES_FOUND: only those packages which have been found which have the type RUNTIME<br />    RUNTIME_PACKAGES_NOT_FOUND: only those packages which have not been found which have the type RUNTIME<br /></pre>
    <p><br /></p>
<p>If a FILENAME is given, the information is printed into this file. If APPEND is used, it is appended to this file, otherwise the file is overwritten if it already existed. If the VAR option is used, the information is "printed" into the specified variable. If FILENAME is not used, the information is printed to the terminal. Using the DESCRIPTION option a description or headline can be set which will be printed above the actual content. If INCLUDE_QUIET_PACKAGES is given, packages which have been searched with find_package(... QUIET) will also be listed. By default they are skipped. If FATAL_ON_MISSING_REQUIRED_PACKAGES is given, CMake will abort if a package which is marked as REQUIRED has not been found.<br /></p>
<p>Example 1, append everything to a file:<br /></p>
<pre>   feature_summary(WHAT ALL<br />                   FILENAME ${CMAKE_BINARY_DIR}/all.log APPEND)<br /></pre>
    <p><br /></p>
<p>Example 2, print the enabled features into the variable enabledFeaturesText, including QUIET packages:<br /></p>
<pre>   feature_summary(WHAT ENABLED_FEATURES<br />                   INCLUDE_QUIET_PACKAGES<br />                   DESCRIPTION "Enabled Features:"<br />                   VAR enabledFeaturesText)<br />   message(STATUS "${enabledFeaturesText}")<br /></pre>
    <p><br /></p>
<p><br /></p>
<pre>    SET_PACKAGE_PROPERTIES(&lt;name&gt; PROPERTIES [ URL &lt;url&gt; ]<br />                                             [ DESCRIPTION &lt;description&gt; ]<br />                                             [ TYPE (RUNTIME|OPTIONAL|RECOMMENDED|REQUIRED) ]<br />                                             [ PURPOSE &lt;purpose&gt; ]<br />                          )<br /></pre>
    <p><br /></p>
<p>Use this macro to set up information about the named package, which can then be displayed via FEATURE_SUMMARY(). This can be done either directly in the Find-module or in the project which uses the module after the FIND_PACKAGE() call. The features for which information can be set are added automatically by the find_package() command.<br /></p>
<p>URL: this should be the homepage of the package, or something similar. Ideally this is set already directly in the Find-module.<br /></p>
<p>DESCRIPTION: A short description what that package is, at most one sentence. Ideally this is set already directly in the Find-module.<br /></p>
<p>TYPE: What type of dependency has the using project on that package. Default is OPTIONAL. In this case it is a package which can be used by the project when available at buildtime, but it also work without. RECOMMENDED is similar to OPTIONAL, i.e. the project will build if the package is not present, but the functionality of the resulting binaries will be severly limited. If a REQUIRED package is not available at buildtime, the project may not even build. This can be combined with the FATAL_ON_MISSING_REQUIRED_PACKAGES argument for feature_summary(). Last, a RUNTIME package is a package which is actually not used at all during the build, but which is required for actually running the resulting binaries. So if such a package is missing, the project can still be built, but it may not work later on. If set_package_properties() is called multiple times for the same package with different TYPEs, the TYPE is only changed to higher TYPEs ( RUNTIME &lt; OPTIONAL &lt; RECOMMENDED &lt; REQUIRED ), lower TYPEs are ignored. The TYPE property is project-specific, so it cannot be set by the Find-module, but must be set in the project.<br /></p>
<p>PURPOSE: This describes which features this package enables in the project, i.e. it tells the user what functionality he gets in the resulting binaries. If set_package_properties() is called multiple times for a package, all PURPOSE properties are appended to a list of purposes of the package in the project. As the TYPE property, also the PURPOSE property is project-specific, so it cannot be set by the Find-module, but must be set in the project.<br /></p>
<p><br /></p>
<p>Example for setting the info for a package:<br /></p>
<pre>   find_package(LibXml2)<br />   set_package_properties(LibXml2 PROPERTIES DESCRIPTION "A XML processing library."<br />                                             URL "<a href="http://xmlsoft.org/">http://xmlsoft.org/</a>")<br /></pre>
    <p><br /></p>
<pre>   set_package_properties(LibXml2 PROPERTIES TYPE RECOMMENDED<br />                                             PURPOSE "Enables HTML-import in MyWordProcessor")<br /></pre>
    <p>...<br /></p>
<pre>   set_package_properties(LibXml2 PROPERTIES TYPE OPTIONAL<br />                                             PURPOSE "Enables odt-export in MyWordProcessor")<br /></pre>
    <p><br /></p>
<pre>   find_package(DBUS)<br />   set_package_properties(DBUS PROPERTIES TYPE RUNTIME<br />                                             PURPOSE "Necessary to disable the screensaver during a presentation" )<br /></pre>
    <p><br /></p>
<pre>    ADD_FEATURE_INFO(&lt;name&gt; &lt;enabled&gt; &lt;description&gt;)<br /></pre>
    <p>Use this macro to add information about a feature with the given &lt;name&gt;. &lt;enabled&gt; contains whether this feature is enabled or not, &lt;description&gt; is a text describing the feature. The information can be displayed using feature_summary() for ENABLED_FEATURES and DISABLED_FEATURES respectively.<br /></p>
<p>Example for setting the info for a feature:<br /></p>
<pre>   option(WITH_FOO "Help for foo" ON)<br />   add_feature_info(Foo WITH_FOO "The Foo feature provides very cool stuff.")<br /></pre>
    <p><br /></p>
<p><br /></p>
<p>The following macros are provided for compatibility with previous CMake versions:<br /></p>
<pre>    SET_PACKAGE_INFO(&lt;name&gt; &lt;description&gt; [&lt;url&gt; [&lt;purpose&gt;] ] )<br /></pre>
    <p>Use this macro to set up information about the named package, which can then be displayed via FEATURE_SUMMARY(). This can be done either directly in the Find-module or in the project which uses the module after the FIND_PACKAGE() call. The features for which information can be set are added automatically by the find_package() command.<br /></p>
<pre>    PRINT_ENABLED_FEATURES()<br /></pre>
    <p>Does the same as FEATURE_SUMMARY(WHAT ENABLED_FEATURES  DESCRIPTION "Enabled features:")<br /></p>
<pre>    PRINT_DISABLED_FEATURES()<br /></pre>
    <p>Does the same as FEATURE_SUMMARY(WHAT DISABLED_FEATURES  DESCRIPTION "Disabled features:")<br /></p>
<pre>    SET_FEATURE_INFO(&lt;name&gt; &lt;description&gt; [&lt;url&gt;] )<br /></pre>
    <p>Does the same as SET_PACKAGE_INFO(&lt;name&gt; &lt;description&gt; &lt;url&gt; )</p>

  </li>
  <li>
    <a name="module:FindALSA"><b><code>FindALSA</code></b></a>: Find alsa<br />
    <p>Find the alsa libraries (asound)<br /></p>
<pre>  This module defines the following variables:<br />     ALSA_FOUND       - True if ALSA_INCLUDE_DIR &amp; ALSA_LIBRARY are found<br />     ALSA_LIBRARIES   - Set when ALSA_LIBRARY is found<br />     ALSA_INCLUDE_DIRS - Set when ALSA_INCLUDE_DIR is found<br /></pre>
    <p><br /></p>
<pre>     ALSA_INCLUDE_DIR - where to find asoundlib.h, etc.<br />     ALSA_LIBRARY     - the asound library<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindASPELL"><b><code>FindASPELL</code></b></a>: Try to find ASPELL<br />
    <p>Once done this will define<br /></p>
<pre>  ASPELL_FOUND - system has ASPELL<br />  ASPELL_EXECUTABLE - the ASPELL executable<br />  ASPELL_INCLUDE_DIR - the ASPELL include directory<br />  ASPELL_LIBRARIES - The libraries needed to use ASPELL<br />  ASPELL_DEFINITIONS - Compiler switches required for using ASPELL<br /></pre>
    
  </li>
  <li>
    <a name="module:FindAVIFile"><b><code>FindAVIFile</code></b></a>: Locate AVIFILE library and include paths<br />
    <p>AVIFILE (<a href="http://avifile.sourceforge.net/">http://avifile.sourceforge.net/</a>)is a set of libraries for  i386 machines to use various AVI codecs. Support is limited beyond Linux. Windows provides native AVI support, and so doesn't need this library. This module defines<br /></p>
<pre>  AVIFILE_INCLUDE_DIR, where to find avifile.h , etc.<br />  AVIFILE_LIBRARIES, the libraries to link against<br />  AVIFILE_DEFINITIONS, definitions to use when compiling<br />  AVIFILE_FOUND, If false, don't try to use AVIFILE<br /></pre>
    
  </li>
  <li>
    <a name="module:FindArmadillo"><b><code>FindArmadillo</code></b></a>: Find Armadillo<br />
    <p>Find the Armadillo C++ library<br /></p>
<p>Using Armadillo:<br /></p>
<pre>  find_package(Armadillo REQUIRED)<br />  include_directories(${ARMADILLO_INCLUDE_DIRS})<br />  add_executable(foo foo.cc)<br />  target_link_libraries(foo ${ARMADILLO_LIBRARIES})<br /></pre>
    <p>This module sets the following variables:<br /></p>
<pre>  ARMADILLO_FOUND - set to true if the library is found<br />  ARMADILLO_INCLUDE_DIRS - list of required include directories<br />  ARMADILLO_LIBRARIES - list of libraries to be linked<br />  ARMADILLO_VERSION_MAJOR - major version number<br />  ARMADILLO_VERSION_MINOR - minor version number<br />  ARMADILLO_VERSION_PATCH - patch version number<br />  ARMADILLO_VERSION_STRING - version number as a string (ex: "1.0.4")<br />  ARMADILLO_VERSION_NAME - name of the version (ex: "Antipodean Antileech")<br /></pre>
    
  </li>
  <li>
    <a name="module:FindBISON"><b><code>FindBISON</code></b></a>: Find bison executable and provides macros to generate custom build rules<br />
    <p>The module defines the following variables:<br /></p>
<pre>  BISON_EXECUTABLE - path to the bison program<br />  BISON_VERSION - version of bison<br />  BISON_FOUND - true if the program was found<br /></pre>
    <p><br /></p>
<p>The minimum required version of bison can be specified using the standard CMake syntax, e.g. find_package(BISON 2.1.3)<br /></p>
<p>If bison is found, the module defines the macros:<br /></p>
<pre>  BISON_TARGET(&lt;Name&gt; &lt;YaccInput&gt; &lt;CodeOutput&gt; [VERBOSE &lt;file&gt;]<br />              [COMPILE_FLAGS &lt;string&gt;])<br /></pre>
    <p>which will create  a custom rule to generate  a parser. &lt;YaccInput&gt; is the path to  a yacc file. &lt;CodeOutput&gt; is the name  of the source file generated by bison.  A header file is also  be generated, and contains the  token  list.  If  COMPILE_FLAGS  option is  specified,  the  next parameter is  added in the bison  command line.  if  VERBOSE option is specified, &lt;file&gt; is created  and contains verbose descriptions of the grammar and parser. The macro defines a set of variables:<br /></p>
<pre>  BISON_${Name}_DEFINED - true is the macro ran successfully<br />  BISON_${Name}_INPUT - The input source file, an alias for &lt;YaccInput&gt;<br />  BISON_${Name}_OUTPUT_SOURCE - The source file generated by bison<br />  BISON_${Name}_OUTPUT_HEADER - The header file generated by bison<br />  BISON_${Name}_OUTPUTS - The sources files generated by bison<br />  BISON_${Name}_COMPILE_FLAGS - Options used in the bison command line<br /></pre>
    <p><br /></p>
<pre>  ====================================================================<br />  Example:<br /></pre>
    <p><br /></p>
<pre>   find_package(BISON)<br />   BISON_TARGET(MyParser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.cpp)<br />   add_executable(Foo main.cpp ${BISON_MyParser_OUTPUTS})<br />  ====================================================================<br /></pre>
    
  </li>
  <li>
    <a name="module:FindBLAS"><b><code>FindBLAS</code></b></a>: Find BLAS library<br />
    <p>This module finds an installed fortran library that implements the BLAS linear-algebra interface (see <a href="http://www.netlib.org/blas/">http://www.netlib.org/blas/</a>). The list of libraries searched for is taken from the autoconf macro file, acx_blas.m4 (distributed at <a href="http://ac-archive.sourceforge.net/ac-archive/acx_blas.html">http://ac-archive.sourceforge.net/ac-archive/acx_blas.html</a>).<br /></p>
<p>This module sets the following variables:<br /></p>
<pre>  BLAS_FOUND - set to true if a library implementing the BLAS interface<br />    is found<br />  BLAS_LINKER_FLAGS - uncached list of required linker flags (excluding -l<br />    and -L).<br />  BLAS_LIBRARIES - uncached list of libraries (using full path name) to<br />    link against to use BLAS<br />  BLAS95_LIBRARIES - uncached list of libraries (using full path name)<br />    to link against to use BLAS95 interface<br />  BLAS95_FOUND - set to true if a library implementing the BLAS f95 interface<br />    is found<br />  BLA_STATIC  if set on this determines what kind of linkage we do (static)<br />  BLA_VENDOR  if set checks only the specified vendor, if not set checks<br />     all the possibilities<br />  BLA_F95     if set on tries to find the f95 interfaces for BLAS/LAPACK<br /></pre>
    <p>######### ## List of vendors (BLA_VENDOR) valid in this module #  Goto,ATLAS PhiPACK,CXML,DXML,SunPerf,SCSL,SGIMATH,IBMESSL,Intel10_32 (intel mkl v10 32 bit),Intel10_64lp (intel mkl v10 64 bit,lp thread model, lp64 model), #  Intel( older versions of mkl 32 and 64 bit), ACML,ACML_MP,ACML_GPU,Apple, NAS, Generic C/CXX should be enabled to use Intel mkl</p>

  </li>
  <li>
    <a name="module:FindBZip2"><b><code>FindBZip2</code></b></a>: Try to find BZip2<br />
    <p>Once done this will define<br /></p>
<pre>  BZIP2_FOUND - system has BZip2<br />  BZIP2_INCLUDE_DIR - the BZip2 include directory<br />  BZIP2_LIBRARIES - Link these to use BZip2<br />  BZIP2_NEED_PREFIX - this is set if the functions are prefixed with BZ2_<br /></pre>
    
  </li>
  <li>
    <a name="module:FindBoost"><b><code>FindBoost</code></b></a>: Try to find Boost include dirs and libraries<br />
    <p>Usage of this module as follows:<br /></p>
<p>NOTE: Take note of the Boost_ADDITIONAL_VERSIONS variable below. Due to Boost naming conventions and limitations in CMake this find module is NOT future safe with respect to Boost version numbers, and may break.<br /></p>
<p>== Using Header-Only libraries from within Boost: ==<br /></p>
<pre>   find_package( Boost 1.36.0 )<br />   if(Boost_FOUND)<br />      include_directories(${Boost_INCLUDE_DIRS})<br />      add_executable(foo foo.cc)<br />   endif()<br /></pre>
    <p><br /></p>
<p><br /></p>
<p>== Using actual libraries from within Boost: ==<br /></p>
<pre>   set(Boost_USE_STATIC_LIBS        ON)<br />   set(Boost_USE_MULTITHREADED      ON)<br />   set(Boost_USE_STATIC_RUNTIME    OFF)<br />   find_package( Boost 1.36.0 COMPONENTS date_time filesystem system ... )<br /></pre>
    <p><br /></p>
<pre>   if(Boost_FOUND)<br />      include_directories(${Boost_INCLUDE_DIRS})<br />      add_executable(foo foo.cc)<br />      target_link_libraries(foo ${Boost_LIBRARIES})<br />   endif()<br /></pre>
    <p><br /></p>
<p><br /></p>
<p>The components list needs to contain actual names of boost libraries only, such as "date_time" for "libboost_date_time".  If you're using parts of Boost that contain header files only (e.g. foreach) you do not need to specify COMPONENTS.<br /></p>
<p>You should provide a minimum version number that should be used. If you provide this version number and specify the REQUIRED attribute, this module will fail if it can't find the specified or a later version. If you specify a version number this is automatically put into the considered list of version numbers and thus doesn't need to be specified in the Boost_ADDITIONAL_VERSIONS variable (see below).<br /></p>
<p>NOTE for Visual Studio Users:<br /></p>
<pre>     Automatic linking is used on MSVC &amp; Borland compilers by default when<br />     #including things in Boost.  It's important to note that setting<br />     Boost_USE_STATIC_LIBS to OFF is NOT enough to get you dynamic linking,<br />     should you need this feature.  Automatic linking typically uses static<br />     libraries with a few exceptions (Boost.Python is one).<br /></pre>
    <p><br /></p>
<pre>     Please see the section below near Boost_LIB_DIAGNOSTIC_DEFINITIONS for<br />     more details.  Adding a TARGET_LINK_LIBRARIES() as shown in the example<br />     above appears to cause VS to link dynamically if Boost_USE_STATIC_LIBS<br />     gets set to OFF.  It is suggested you avoid automatic linking since it<br />     will make your application less portable.<br /></pre>
    <p><br /></p>
<p>=========== The mess that is Boost_ADDITIONAL_VERSIONS (sorry?) ============<br /></p>
<p>OK, so the Boost_ADDITIONAL_VERSIONS variable can be used to specify a list of boost version numbers that should be taken into account when searching for Boost. Unfortunately boost puts the version number into the actual filename for the libraries, so this variable will certainly be needed in the future when new Boost versions are released.<br /></p>
<p>Currently this module searches for the following version numbers: 1.33, 1.33.0, 1.33.1, 1.34, 1.34.0, 1.34.1, 1.35, 1.35.0, 1.35.1, 1.36, 1.36.0, 1.36.1, 1.37, 1.37.0, 1.38, 1.38.0, 1.39, 1.39.0, 1.40, 1.40.0, 1.41, 1.41.0, 1.42, 1.42.0, 1.43, 1.43.0, 1.44, 1.44.0, 1.45, 1.45.0, 1.46, 1.46.0, 1.46.1, 1.47, 1.47.0, 1.48, 1.48.0<br /></p>
<p>NOTE: If you add a new major 1.x version in Boost_ADDITIONAL_VERSIONS you should add both 1.x and 1.x.0 as shown above.  Official Boost include directories omit the 3rd version number from include paths if it is 0 although not all binary Boost releases do so.<br /></p>
<p>set(Boost_ADDITIONAL_VERSIONS "1.78" "1.78.0" "1.79" "1.79.0")<br /></p>
<p>===================================== ============= ========================<br /></p>
<p>Variables used by this module, they can change the default behaviour and need to be set before calling find_package:<br /></p>
<pre>   Boost_USE_MULTITHREADED      Can be set to OFF to use the non-multithreaded<br />                                boost libraries.  If not specified, defaults<br />                                to ON.<br /></pre>
    <p><br /></p>
<pre>   Boost_USE_STATIC_LIBS        Can be set to ON to force the use of the static<br />                                boost libraries. Defaults to OFF.<br /></pre>
    <p><br /></p>
<pre>   Boost_NO_SYSTEM_PATHS        Set to TRUE to suppress searching in system<br />                                paths (or other locations outside of BOOST_ROOT<br />                                or BOOST_INCLUDEDIR).  Useful when specifying<br />                                BOOST_ROOT. Defaults to OFF.<br />                                  [Since CMake 2.8.3]<br /></pre>
    <p><br /></p>
<pre>   Boost_NO_BOOST_CMAKE         Do not do a find_package call in config mode<br />                                before searching for a regular boost install.<br />                                This will avoid finding boost-cmake installs.<br />                                Defaults to OFF.<br />                                  [Since CMake 2.8.6]<br /></pre>
    <p><br /></p>
<pre>   Boost_USE_STATIC_RUNTIME     If enabled, searches for boost libraries<br />                                linked against a static C++ standard library<br />                                ('s' ABI tag). This option should be set to<br />                                ON or OFF because the default behavior<br />                                if not specified is platform dependent<br />                                for backwards compatibility.<br />                                  [Since CMake 2.8.3]<br /></pre>
    <p><br /></p>
<pre>   Boost_USE_DEBUG_PYTHON       If enabled, searches for boost libraries<br />                                compiled against a special debug build of<br />                                Python ('y' ABI tag). Defaults to OFF.<br />                                  [Since CMake 2.8.3]<br /></pre>
    <p><br /></p>
<pre>   Boost_USE_STLPORT            If enabled, searches for boost libraries<br />                                compiled against the STLPort standard<br />                                library ('p' ABI tag). Defaults to OFF.<br />                                  [Since CMake 2.8.3]<br /></pre>
    <p><br /></p>
<pre>   Boost_USE_STLPORT_DEPRECATED_NATIVE_IOSTREAMS<br />                                If enabled, searches for boost libraries<br />                                compiled against the deprecated STLPort<br />                                "native iostreams" feature ('n' ABI tag).<br />                                Defaults to OFF.<br />                                  [Since CMake 2.8.3]<br /></pre>
    <p><br /></p>
<p>Other Variables used by this module which you may want to set.<br /></p>
<pre>   Boost_ADDITIONAL_VERSIONS    A list of version numbers to use for searching<br />                                the boost include directory.  Please see<br />                                the documentation above regarding this<br />                                annoying, but necessary variable :(<br /></pre>
    <p><br /></p>
<pre>   Boost_DEBUG                  Set this to TRUE to enable debugging output<br />                                of FindBoost.cmake if you are having problems.<br />                                Please enable this before filing any bug<br />                                reports.<br /></pre>
    <p><br /></p>
<pre>   Boost_DETAILED_FAILURE_MSG   FindBoost doesn't output detailed information<br />                                about why it failed or how to fix the problem<br />                                unless this is set to TRUE or the REQUIRED<br />                                keyword is specified in find_package().<br />                                  [Since CMake 2.8.0]<br /></pre>
    <p><br /></p>
<pre>   Boost_COMPILER               Set this to the compiler suffix used by Boost<br />                                (e.g. "-gcc43") if FindBoost has problems finding<br />                                the proper Boost installation<br /></pre>
    <p><br /></p>
<pre>   Boost_THREADAPI                When building boost.thread, sometimes the name of the<br />                                library contains an additional "pthread" or "win32"<br />                                string known as the threadapi.  This can happen when<br />                                compiling against pthreads on Windows or win32 threads<br />                                on Cygwin.  You may specify this variable and if set<br />                                when FindBoost searches for the Boost threading library<br />                                it will first try to match the threadapi you specify.<br />                                  For Example: libboost_thread_win32-mgw45-mt-1_43.a<br />                                might be found if you specified "win32" here before<br />                                falling back on libboost_thread-mgw45-mt-1_43.a.<br />                                  [Since CMake 2.8.3]<br /></pre>
    <p><br /></p>
<pre>   Boost_REALPATH               Resolves symbolic links for discovered boost libraries<br />                                to assist with packaging.  For example, instead of<br />                                Boost_SYSTEM_LIBRARY_RELEASE being resolved to<br />                                "/usr/lib/libboost_system.so" it would be<br />                                "/usr/lib/libboost_system.so.1.42.0" instead.<br />                                This does not affect linking and should not be<br />                                enabled unless the user needs this information.<br />                                  [Since CMake 2.8.3]<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindBullet"><b><code>FindBullet</code></b></a>: Try to find the Bullet physics engine<br />
    <p><br /></p>
<pre>  This module defines the following variables<br /></pre>
    <p><br /></p>
<pre>  BULLET_FOUND - Was bullet found<br />  BULLET_INCLUDE_DIRS - the Bullet include directories<br />  BULLET_LIBRARIES - Link to this, by default it includes<br />                     all bullet components (Dynamics,<br />                     Collision, LinearMath, &amp; SoftBody)<br /></pre>
    <p><br /></p>
<pre>  This module accepts the following variables<br /></pre>
    <p><br /></p>
<pre>  BULLET_ROOT - Can be set to bullet install path or Windows build path<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindCABLE"><b><code>FindCABLE</code></b></a>: Find CABLE<br />
    <p>This module finds if CABLE is installed and determines where the include files and libraries are.  This code sets the following variables:<br /></p>
<pre>  CABLE             the path to the cable executable<br />  CABLE_TCL_LIBRARY the path to the Tcl wrapper library<br />  CABLE_INCLUDE_DIR the path to the include directory<br /></pre>
    <p><br /></p>
<p>To build Tcl wrappers, you should add shared library and link it to ${CABLE_TCL_LIBRARY}.  You should also add ${CABLE_INCLUDE_DIR} as an include directory.</p>

  </li>
  <li>
    <a name="module:FindCUDA"><b><code>FindCUDA</code></b></a>: Tools for building CUDA C files: libraries and build dependencies.<br />
    <p>This script locates the NVIDIA CUDA C tools. It should work on linux, windows, and mac and should be reasonably up to date with CUDA C releases.<br /></p>
<p>This script makes use of the standard find_package arguments of &lt;VERSION&gt;, REQUIRED and QUIET.  CUDA_FOUND will report if an acceptable version of CUDA was found.<br /></p>
<p>The script will prompt the user to specify CUDA_TOOLKIT_ROOT_DIR if the prefix cannot be determined by the location of nvcc in the system path and REQUIRED is specified to find_package(). To use a different installed version of the toolkit set the environment variable CUDA_BIN_PATH before running cmake (e.g. CUDA_BIN_PATH=/usr/local/cuda1.0 instead of the default /usr/local/cuda) or set CUDA_TOOLKIT_ROOT_DIR after configuring.  If you change the value of CUDA_TOOLKIT_ROOT_DIR, various components that depend on the path will be relocated.<br /></p>
<p>It might be necessary to set CUDA_TOOLKIT_ROOT_DIR manually on certain platforms, or to use a cuda runtime not installed in the default location. In newer versions of the toolkit the cuda library is included with the graphics driver- be sure that the driver version matches what is needed by the cuda runtime version.<br /></p>
<p>The following variables affect the behavior of the macros in the script (in alphebetical order).  Note that any of these flags can be changed multiple times in the same directory before calling CUDA_ADD_EXECUTABLE, CUDA_ADD_LIBRARY, CUDA_COMPILE, CUDA_COMPILE_PTX or CUDA_WRAP_SRCS.<br /></p>
<pre>  CUDA_64_BIT_DEVICE_CODE (Default matches host bit size)<br />  -- Set to ON to compile for 64 bit device code, OFF for 32 bit device code.<br />     Note that making this different from the host code when generating object<br />     or C files from CUDA code just won't work, because size_t gets defined by<br />     nvcc in the generated source.  If you compile to PTX and then load the<br />     file yourself, you can mix bit sizes between device and host.<br /></pre>
    <p><br /></p>
<pre>  CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE (Default ON)<br />  -- Set to ON if you want the custom build rule to be attached to the source<br />     file in Visual Studio.  Turn OFF if you add the same cuda file to multiple<br />     targets.<br /></pre>
    <p><br /></p>
<pre>     This allows the user to build the target from the CUDA file; however, bad<br />     things can happen if the CUDA source file is added to multiple targets.<br />     When performing parallel builds it is possible for the custom build<br />     command to be run more than once and in parallel causing cryptic build<br />     errors.  VS runs the rules for every source file in the target, and a<br />     source can have only one rule no matter how many projects it is added to.<br />     When the rule is run from multiple targets race conditions can occur on<br />     the generated file.  Eventually everything will get built, but if the user<br />     is unaware of this behavior, there may be confusion.  It would be nice if<br />     this script could detect the reuse of source files across multiple targets<br />     and turn the option off for the user, but no good solution could be found.<br /></pre>
    <p><br /></p>
<pre>  CUDA_BUILD_CUBIN (Default OFF)<br />  -- Set to ON to enable and extra compilation pass with the -cubin option in<br />     Device mode. The output is parsed and register, shared memory usage is<br />     printed during build.<br /></pre>
    <p><br /></p>
<pre>  CUDA_BUILD_EMULATION (Default OFF for device mode)<br />  -- Set to ON for Emulation mode. -D_DEVICEEMU is defined for CUDA C files<br />     when CUDA_BUILD_EMULATION is TRUE.<br /></pre>
    <p><br /></p>
<pre>  CUDA_GENERATED_OUTPUT_DIR (Default CMAKE_CURRENT_BINARY_DIR)<br />  -- Set to the path you wish to have the generated files placed.  If it is<br />     blank output files will be placed in CMAKE_CURRENT_BINARY_DIR.<br />     Intermediate files will always be placed in<br />     CMAKE_CURRENT_BINARY_DIR/CMakeFiles.<br /></pre>
    <p><br /></p>
<pre>  CUDA_HOST_COMPILATION_CPP (Default ON)<br />  -- Set to OFF for C compilation of host code.<br /></pre>
    <p><br /></p>
<pre>  CUDA_NVCC_FLAGS<br />  CUDA_NVCC_FLAGS_&lt;CONFIG&gt;<br />  -- Additional NVCC command line arguments.  NOTE: multiple arguments must be<br />     semi-colon delimited (e.g. --compiler-options;-Wall)<br /></pre>
    <p><br /></p>
<pre>  CUDA_PROPAGATE_HOST_FLAGS (Default ON)<br />  -- Set to ON to propagate CMAKE_{C,CXX}_FLAGS and their configuration<br />     dependent counterparts (e.g. CMAKE_C_FLAGS_DEBUG) automatically to the<br />     host compiler through nvcc's -Xcompiler flag.  This helps make the<br />     generated host code match the rest of the system better.  Sometimes<br />     certain flags give nvcc problems, and this will help you turn the flag<br />     propagation off.  This does not affect the flags supplied directly to nvcc<br />     via CUDA_NVCC_FLAGS or through the OPTION flags specified through<br />     CUDA_ADD_LIBRARY, CUDA_ADD_EXECUTABLE, or CUDA_WRAP_SRCS.  Flags used for<br />     shared library compilation are not affected by this flag.<br /></pre>
    <p><br /></p>
<pre>  CUDA_VERBOSE_BUILD (Default OFF)<br />  -- Set to ON to see all the commands used when building the CUDA file.  When<br />     using a Makefile generator the value defaults to VERBOSE (run make<br />     VERBOSE=1 to see output), although setting CUDA_VERBOSE_BUILD to ON will<br />     always print the output.<br /></pre>
    <p><br /></p>
<p>The script creates the following macros (in alphebetical order):<br /></p>
<pre>  CUDA_ADD_CUFFT_TO_TARGET( cuda_target )<br />  -- Adds the cufft library to the target (can be any target).  Handles whether<br />     you are in emulation mode or not.<br /></pre>
    <p><br /></p>
<pre>  CUDA_ADD_CUBLAS_TO_TARGET( cuda_target )<br />  -- Adds the cublas library to the target (can be any target).  Handles<br />     whether you are in emulation mode or not.<br /></pre>
    <p><br /></p>
<pre>  CUDA_ADD_EXECUTABLE( cuda_target file0 file1 ...<br />                       [WIN32] [MACOSX_BUNDLE] [EXCLUDE_FROM_ALL] [OPTIONS ...] )<br />  -- Creates an executable "cuda_target" which is made up of the files<br />     specified.  All of the non CUDA C files are compiled using the standard<br />     build rules specified by CMAKE and the cuda files are compiled to object<br />     files using nvcc and the host compiler.  In addition CUDA_INCLUDE_DIRS is<br />     added automatically to include_directories().  Some standard CMake target<br />     calls can be used on the target after calling this macro<br />     (e.g. set_target_properties and target_link_libraries), but setting<br />     properties that adjust compilation flags will not affect code compiled by<br />     nvcc.  Such flags should be modified before calling CUDA_ADD_EXECUTABLE,<br />     CUDA_ADD_LIBRARY or CUDA_WRAP_SRCS.<br /></pre>
    <p><br /></p>
<pre>  CUDA_ADD_LIBRARY( cuda_target file0 file1 ...<br />                    [STATIC | SHARED | MODULE] [EXCLUDE_FROM_ALL] [OPTIONS ...] )<br />  -- Same as CUDA_ADD_EXECUTABLE except that a library is created.<br /></pre>
    <p><br /></p>
<pre>  CUDA_BUILD_CLEAN_TARGET()<br />  -- Creates a convience target that deletes all the dependency files<br />     generated.  You should make clean after running this target to ensure the<br />     dependency files get regenerated.<br /></pre>
    <p><br /></p>
<pre>  CUDA_COMPILE( generated_files file0 file1 ... [STATIC | SHARED | MODULE]<br />                [OPTIONS ...] )<br />  -- Returns a list of generated files from the input source files to be used<br />     with ADD_LIBRARY or ADD_EXECUTABLE.<br /></pre>
    <p><br /></p>
<pre>  CUDA_COMPILE_PTX( generated_files file0 file1 ... [OPTIONS ...] )<br />  -- Returns a list of PTX files generated from the input source files.<br /></pre>
    <p><br /></p>
<pre>  CUDA_INCLUDE_DIRECTORIES( path0 path1 ... )<br />  -- Sets the directories that should be passed to nvcc<br />     (e.g. nvcc -Ipath0 -Ipath1 ... ). These paths usually contain other .cu<br />     files.<br /></pre>
    <p><br /></p>
<pre>  CUDA_WRAP_SRCS ( cuda_target format generated_files file0 file1 ...<br />                   [STATIC | SHARED | MODULE] [OPTIONS ...] )<br />  -- This is where all the magic happens.  CUDA_ADD_EXECUTABLE,<br />     CUDA_ADD_LIBRARY, CUDA_COMPILE, and CUDA_COMPILE_PTX all call this<br />     function under the hood.<br /></pre>
    <p><br /></p>
<pre>     Given the list of files (file0 file1 ... fileN) this macro generates<br />     custom commands that generate either PTX or linkable objects (use "PTX" or<br />     "OBJ" for the format argument to switch).  Files that don't end with .cu<br />     or have the HEADER_FILE_ONLY property are ignored.<br /></pre>
    <p><br /></p>
<pre>     The arguments passed in after OPTIONS are extra command line options to<br />     give to nvcc.  You can also specify per configuration options by<br />     specifying the name of the configuration followed by the options.  General<br />     options must preceed configuration specific options.  Not all<br />     configurations need to be specified, only the ones provided will be used.<br /></pre>
    <p><br /></p>
<pre>        OPTIONS -DFLAG=2 "-DFLAG_OTHER=space in flag"<br />        DEBUG -g<br />        RELEASE --use_fast_math<br />        RELWITHDEBINFO --use_fast_math;-g<br />        MINSIZEREL --use_fast_math<br /></pre>
    <p><br /></p>
<pre>     For certain configurations (namely VS generating object files with<br />     CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE set to ON), no generated file will<br />     be produced for the given cuda file.  This is because when you add the<br />     cuda file to Visual Studio it knows that this file produces an object file<br />     and will link in the resulting object file automatically.<br /></pre>
    <p><br /></p>
<pre>     This script will also generate a separate cmake script that is used at<br />     build time to invoke nvcc.  This is for several reasons.<br /></pre>
    <p><br /></p>
<pre>       1. nvcc can return negative numbers as return values which confuses<br />       Visual Studio into thinking that the command succeeded.  The script now<br />       checks the error codes and produces errors when there was a problem.<br /></pre>
    <p><br /></p>
<pre>       2. nvcc has been known to not delete incomplete results when it<br />       encounters problems.  This confuses build systems into thinking the<br />       target was generated when in fact an unusable file exists.  The script<br />       now deletes the output files if there was an error.<br /></pre>
    <p><br /></p>
<pre>       3. By putting all the options that affect the build into a file and then<br />       make the build rule dependent on the file, the output files will be<br />       regenerated when the options change.<br /></pre>
    <p><br /></p>
<pre>     This script also looks at optional arguments STATIC, SHARED, or MODULE to<br />     determine when to target the object compilation for a shared library.<br />     BUILD_SHARED_LIBS is ignored in CUDA_WRAP_SRCS, but it is respected in<br />     CUDA_ADD_LIBRARY.  On some systems special flags are added for building<br />     objects intended for shared libraries.  A preprocessor macro,<br />     &lt;target_name&gt;_EXPORTS is defined when a shared library compilation is<br />     detected.<br /></pre>
    <p><br /></p>
<pre>     Flags passed into add_definitions with -D or /D are passed along to nvcc.<br /></pre>
    <p><br /></p>
<p>The script defines the following variables:<br /></p>
<pre>  CUDA_VERSION_MAJOR    -- The major version of cuda as reported by nvcc.<br />  CUDA_VERSION_MINOR    -- The minor version.<br />  CUDA_VERSION<br />  CUDA_VERSION_STRING   -- CUDA_VERSION_MAJOR.CUDA_VERSION_MINOR<br /></pre>
    <p><br /></p>
<pre>  CUDA_TOOLKIT_ROOT_DIR -- Path to the CUDA Toolkit (defined if not set).<br />  CUDA_SDK_ROOT_DIR     -- Path to the CUDA SDK.  Use this to find files in the<br />                           SDK.  This script will not directly support finding<br />                           specific libraries or headers, as that isn't<br />                           supported by NVIDIA.  If you want to change<br />                           libraries when the path changes see the<br />                           FindCUDA.cmake script for an example of how to clear<br />                           these variables.  There are also examples of how to<br />                           use the CUDA_SDK_ROOT_DIR to locate headers or<br />                           libraries, if you so choose (at your own risk).<br />  CUDA_INCLUDE_DIRS     -- Include directory for cuda headers.  Added automatically<br />                           for CUDA_ADD_EXECUTABLE and CUDA_ADD_LIBRARY.<br />  CUDA_LIBRARIES        -- Cuda RT library.<br />  CUDA_CUFFT_LIBRARIES  -- Device or emulation library for the Cuda FFT<br />                           implementation (alternative to:<br />                           CUDA_ADD_CUFFT_TO_TARGET macro)<br />  CUDA_CUBLAS_LIBRARIES -- Device or emulation library for the Cuda BLAS<br />                           implementation (alterative to:<br />                           CUDA_ADD_CUBLAS_TO_TARGET macro).<br /></pre>
    <p><br /></p>
<p><br /></p>
<pre>  James Bigler, NVIDIA Corp (nvidia.com - jbigler)<br />  Abe Stephens, SCI Institute -- <a href="http://www.sci.utah.edu/~abe/FindCuda.html">http://www.sci.utah.edu/~abe/FindCuda.html</a><br /></pre>
    <p><br /></p>
<pre>  Copyright (c) 2008 - 2009 NVIDIA Corporation.  All rights reserved.<br /></pre>
    <p><br /></p>
<pre>  Copyright (c) 2007-2009<br />  Scientific Computing and Imaging Institute, University of Utah<br /></pre>
    <p><br /></p>
<pre>  This code is licensed under the MIT License.  See the FindCUDA.cmake script<br />  for the text of the license.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindCURL"><b><code>FindCURL</code></b></a>: Find curl<br />
    <p>Find the native CURL headers and libraries.<br /></p>
<pre>  CURL_INCLUDE_DIRS - where to find curl/curl.h, etc.<br />  CURL_LIBRARIES    - List of libraries when using curl.<br />  CURL_FOUND        - True if curl found.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindCVS"><b><code>FindCVS</code></b></a>:  <br />
    <p>The module defines the following variables:<br /></p>
<pre>   CVS_EXECUTABLE - path to cvs command line client<br />   CVS_FOUND - true if the command line client was found<br /></pre>
    <p>Example usage:<br /></p>
<pre>   find_package(CVS)<br />   if(CVS_FOUND)<br />     message("CVS found: ${CVS_EXECUTABLE}")<br />   endif(CVS_FOUND)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindCoin3D"><b><code>FindCoin3D</code></b></a>: Find Coin3D (Open Inventor)<br />
    <p>Coin3D is an implementation of the Open Inventor API. It provides data structures and algorithms for 3D visualization <a href="http://www.coin3d.org/">http://www.coin3d.org/</a><br /></p>
<p>This module defines the following variables<br /></p>
<pre>  COIN3D_FOUND         - system has Coin3D - Open Inventor<br />  COIN3D_INCLUDE_DIRS  - where the Inventor include directory can be found<br />  COIN3D_LIBRARIES     - Link to this to use Coin3D<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindCups"><b><code>FindCups</code></b></a>: Try to find the Cups printing system<br />
    <p>Once done this will define<br /></p>
<pre>  CUPS_FOUND - system has Cups<br />  CUPS_INCLUDE_DIR - the Cups include directory<br />  CUPS_LIBRARIES - Libraries needed to use Cups<br />  Set CUPS_REQUIRE_IPP_DELETE_ATTRIBUTE to TRUE if you need a version which <br />  features this function (i.e. at least 1.1.19)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindCurses"><b><code>FindCurses</code></b></a>: Find the curses include file and library<br />
    <p><br /></p>
<pre>  CURSES_FOUND - system has Curses<br />  CURSES_INCLUDE_DIR - the Curses include directory<br />  CURSES_LIBRARIES - The libraries needed to use Curses<br />  CURSES_HAVE_CURSES_H - true if curses.h is available<br />  CURSES_HAVE_NCURSES_H - true if ncurses.h is available<br />  CURSES_HAVE_NCURSES_NCURSES_H - true if ncurses/ncurses.h is available<br />  CURSES_HAVE_NCURSES_CURSES_H - true if ncurses/curses.h is available<br />  CURSES_LIBRARY - set for backwards compatibility with 2.4 CMake<br /></pre>
    <p><br /></p>
<p>Set CURSES_NEED_NCURSES to TRUE before the FIND_PACKAGE() command if NCurses  functionality is required.</p>

  </li>
  <li>
    <a name="module:FindCxxTest"><b><code>FindCxxTest</code></b></a>: Find CxxTest<br />
    <p>Find the CxxTest suite and declare a helper macro for creating unit tests and integrating them with CTest. For more details on CxxTest see <a href="http://cxxtest.tigris.org">http://cxxtest.tigris.org</a><br /></p>
<p>INPUT Variables<br /></p>
<pre>   CXXTEST_USE_PYTHON [deprecated since 1.3]<br />       Only used in the case both Python &amp; Perl<br />       are detected on the system to control<br />       which CxxTest code generator is used.<br /></pre>
    <p><br /></p>
<pre>       NOTE: In older versions of this Find Module,<br />       this variable controlled if the Python test<br />       generator was used instead of the Perl one,<br />       regardless of which scripting language the<br />       user had installed.<br /></pre>
    <p><br /></p>
<pre>   CXXTEST_TESTGEN_ARGS (since CMake 2.8.3)<br />       Specify a list of options to pass to the CxxTest code<br />       generator.  If not defined, --error-printer is<br />       passed.<br /></pre>
    <p><br /></p>
<p>OUTPUT Variables<br /></p>
<pre>   CXXTEST_FOUND<br />       True if the CxxTest framework was found<br />   CXXTEST_INCLUDE_DIRS<br />       Where to find the CxxTest include directory<br />   CXXTEST_PERL_TESTGEN_EXECUTABLE<br />       The perl-based test generator<br />   CXXTEST_PYTHON_TESTGEN_EXECUTABLE<br />       The python-based test generator<br />   CXXTEST_TESTGEN_EXECUTABLE (since CMake 2.8.3)<br />       The test generator that is actually used (chosen using user preferences<br />       and interpreters found in the system)<br />   CXXTEST_TESTGEN_INTERPRETER (since CMake 2.8.3)<br />       The full path to the Perl or Python executable on the system<br /></pre>
    <p><br /></p>
<p>MACROS for optional use by CMake users:<br /></p>
<pre>    CXXTEST_ADD_TEST(&lt;test_name&gt; &lt;gen_source_file&gt; &lt;input_files_to_testgen...&gt;)<br />       Creates a CxxTest runner and adds it to the CTest testing suite<br />       Parameters:<br />           test_name               The name of the test<br />           gen_source_file         The generated source filename to be<br />                                   generated by CxxTest<br />           input_files_to_testgen  The list of header files containing the<br />                                   CxxTest::TestSuite's to be included in<br />                                   this runner<br />           <br />       #==============<br />       Example Usage:<br /></pre>
    <p><br /></p>
<pre>           find_package(CxxTest)<br />           if(CXXTEST_FOUND)<br />               include_directories(${CXXTEST_INCLUDE_DIR})<br />               enable_testing()<br /></pre>
    <p><br /></p>
<pre>               CXXTEST_ADD_TEST(unittest_foo foo_test.cc<br />                                 ${CMAKE_CURRENT_SOURCE_DIR}/foo_test.h)<br />               target_link_libraries(unittest_foo foo) # as needed<br />           endif()<br /></pre>
    <p><br /></p>
<pre>              This will (if CxxTest is found):<br />              1. Invoke the testgen executable to autogenerate foo_test.cc in the<br />                 binary tree from "foo_test.h" in the current source directory.<br />              2. Create an executable and test called unittest_foo.<br />               <br />      #=============<br />      Example foo_test.h:<br /></pre>
    <p><br /></p>
<pre>          #include &lt;cxxtest/TestSuite.h&gt;<br />          <br />          class MyTestSuite : public CxxTest::TestSuite <br />          {<br />          public:<br />             void testAddition( void )<br />             {<br />                TS_ASSERT( 1 + 1 &gt; 1 );<br />                TS_ASSERT_EQUALS( 1 + 1, 2 );<br />             }<br />          };<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindCygwin"><b><code>FindCygwin</code></b></a>: this module looks for Cygwin<br />
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindDCMTK"><b><code>FindDCMTK</code></b></a>: find DCMTK libraries and applications<br />
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindDart"><b><code>FindDart</code></b></a>: Find DART<br />
    <p>This module looks for the dart testing software and sets DART_ROOT to point to where it found it.<br /></p>

  </li>
  <li>
    <a name="module:FindDevIL"><b><code>FindDevIL</code></b></a>:  <br />
    <p>This module locates the developer's image library. <a href="http://openil.sourceforge.net/">http://openil.sourceforge.net/</a><br /></p>
<p>This module sets: IL_LIBRARIES the name of the IL library. These include the full path to the core DevIL library. This one has to be linked into the application. ILU_LIBRARIES the name of the ILU library. Again, the full path. This library is for filters and effects, not actual loading. It doesn't have to be linked if the functionality it provides is not used. ILUT_LIBRARIES the name of the ILUT library. Full path. This part of the library interfaces with OpenGL. It is not strictly needed in applications. IL_INCLUDE_DIR where to find the il.h, ilu.h and ilut.h files. IL_FOUND this is set to TRUE if all the above variables were set. This will be set to false if ILU or ILUT are not found, even if they are not needed. In most systems, if one library is found all the others are as well. That's the way the DevIL developers release it.</p>

  </li>
  <li>
    <a name="module:FindDoxygen"><b><code>FindDoxygen</code></b></a>: This module looks for Doxygen and the path to Graphviz's dot<br />
    <p>Doxygen is a documentation generation tool.  Please see <a href="http://www.doxygen.org">http://www.doxygen.org</a><br /></p>
<p>This module accepts the following optional variables:<br /></p>
<pre>   DOXYGEN_SKIP_DOT       = If true this module will skip trying to find Dot<br />                            (an optional component often used by Doxygen)<br /></pre>
    <p><br /></p>
<p>This modules defines the following variables:<br /></p>
<pre>   DOXYGEN_EXECUTABLE     = The path to the doxygen command.<br />   DOXYGEN_FOUND          = Was Doxygen found or not?<br /></pre>
    <p><br /></p>
<pre>   DOXYGEN_DOT_EXECUTABLE = The path to the dot program used by doxygen.<br />   DOXYGEN_DOT_FOUND      = Was Dot found or not?<br />   DOXYGEN_DOT_PATH       = The path to dot not including the executable<br /></pre>
    <p><br /></p>
<p><br /></p>

  </li>
  <li>
    <a name="module:FindEXPAT"><b><code>FindEXPAT</code></b></a>: Find expat<br />
    <p>Find the native EXPAT headers and libraries.<br /></p>
<pre>  EXPAT_INCLUDE_DIRS - where to find expat.h, etc.<br />  EXPAT_LIBRARIES    - List of libraries when using expat.<br />  EXPAT_FOUND        - True if expat found.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindFLEX"><b><code>FindFLEX</code></b></a>: Find flex executable and provides a macro to generate custom build rules<br />
    <p><br /></p>
<p>The module defines the following variables:<br /></p>
<pre>  FLEX_FOUND - true is flex executable is found<br />  FLEX_EXECUTABLE - the path to the flex executable<br />  FLEX_VERSION - the version of flex<br />  FLEX_LIBRARIES - The flex libraries<br />  FLEX_INCLUDE_DIRS - The path to the flex headers<br /></pre>
    <p><br /></p>
<p>The minimum required version of flex can be specified using the standard syntax, e.g. FIND_PACKAGE(FLEX 2.5.13)<br /></p>
<p><br /></p>
<p>If flex is found on the system, the module provides the macro:<br /></p>
<pre>  FLEX_TARGET(Name FlexInput FlexOutput [COMPILE_FLAGS &lt;string&gt;])<br /></pre>
    <p>which creates a custom command  to generate the &lt;FlexOutput&gt; file from the &lt;FlexInput&gt; file.  If  COMPILE_FLAGS option is specified, the next parameter is added to the flex  command line. Name is an alias used to get  details of  this custom  command.  Indeed the  macro defines  the following variables:<br /></p>
<pre>  FLEX_${Name}_DEFINED - true is the macro ran successfully<br />  FLEX_${Name}_OUTPUTS - the source file generated by the custom rule, an<br />  alias for FlexOutput<br />  FLEX_${Name}_INPUT - the flex source file, an alias for ${FlexInput}<br /></pre>
    <p><br /></p>
<p>Flex scanners oftenly use tokens  defined by Bison: the code generated by Flex  depends of the header  generated by Bison.   This module also defines a macro:<br /></p>
<pre>  ADD_FLEX_BISON_DEPENDENCY(FlexTarget BisonTarget)<br /></pre>
    <p>which  adds the  required dependency  between a  scanner and  a parser where  &lt;FlexTarget&gt;  and &lt;BisonTarget&gt;  are  the  first parameters  of respectively FLEX_TARGET and BISON_TARGET macros.<br /></p>
<pre>  ====================================================================<br />  Example:<br /></pre>
    <p><br /></p>
<pre>   find_package(BISON)<br />   find_package(FLEX)<br /></pre>
    <p><br /></p>
<pre>   BISON_TARGET(MyParser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.cpp)<br />   FLEX_TARGET(MyScanner lexer.l  ${CMAKE_CURRENT_BINARY_DIR}/lexer.cpp)<br />   ADD_FLEX_BISON_DEPENDENCY(MyScanner MyParser)<br /></pre>
    <p><br /></p>
<pre>   include_directories(${CMAKE_CURRENT_BINARY_DIR})<br />   add_executable(Foo<br />      Foo.cc<br />      ${BISON_MyParser_OUTPUTS}<br />      ${FLEX_MyScanner_OUTPUTS}<br />   )<br />  ====================================================================<br /></pre>
    
  </li>
  <li>
    <a name="module:FindFLTK"><b><code>FindFLTK</code></b></a>: Find the native FLTK includes and library<br />
    <p><br /></p>
<p>By default FindFLTK.cmake will search for all of the FLTK components and add them to the FLTK_LIBRARIES variable.<br /></p>
<pre>   You can limit the components which get placed in FLTK_LIBRARIES by<br />   defining one or more of the following three options:<br /></pre>
    <p><br /></p>
<pre>     FLTK_SKIP_OPENGL, set to true to disable searching for opengl and<br />                       the FLTK GL library<br />     FLTK_SKIP_FORMS, set to true to disable searching for fltk_forms<br />     FLTK_SKIP_IMAGES, set to true to disable searching for fltk_images<br /></pre>
    <p><br /></p>
<pre>     FLTK_SKIP_FLUID, set to true if the fluid binary need not be present<br />                      at build time<br /></pre>
    <p><br /></p>
<p>The following variables will be defined:<br /></p>
<pre>     FLTK_FOUND, True if all components not skipped were found<br />     FLTK_INCLUDE_DIR, where to find include files<br />     FLTK_LIBRARIES, list of fltk libraries you should link against<br />     FLTK_FLUID_EXECUTABLE, where to find the Fluid tool<br />     FLTK_WRAP_UI, This enables the FLTK_WRAP_UI command<br /></pre>
    <p><br /></p>
<p>The following cache variables are assigned but should not be used. See the FLTK_LIBRARIES variable instead.<br /></p>
<pre>     FLTK_BASE_LIBRARY   = the full path to fltk.lib<br />     FLTK_GL_LIBRARY     = the full path to fltk_gl.lib<br />     FLTK_FORMS_LIBRARY  = the full path to fltk_forms.lib<br />     FLTK_IMAGES_LIBRARY = the full path to fltk_images.lib<br /></pre>
    
  </li>
  <li>
    <a name="module:FindFLTK2"><b><code>FindFLTK2</code></b></a>: Find the native FLTK2 includes and library<br />
    <p>The following settings are defined<br /></p>
<pre>  FLTK2_FLUID_EXECUTABLE, where to find the Fluid tool<br />  FLTK2_WRAP_UI, This enables the FLTK2_WRAP_UI command<br />  FLTK2_INCLUDE_DIR, where to find include files<br />  FLTK2_LIBRARIES, list of fltk2 libraries<br />  FLTK2_FOUND, Don't use FLTK2 if false.<br /></pre>
    <p>The following settings should not be used in general.<br /></p>
<pre>  FLTK2_BASE_LIBRARY   = the full path to fltk2.lib<br />  FLTK2_GL_LIBRARY     = the full path to fltk2_gl.lib<br />  FLTK2_IMAGES_LIBRARY = the full path to fltk2_images.lib<br /></pre>
    
  </li>
  <li>
    <a name="module:FindFreetype"><b><code>FindFreetype</code></b></a>: Locate FreeType library<br />
    <p>This module defines<br /></p>
<pre>  FREETYPE_LIBRARIES, the library to link against<br />  FREETYPE_FOUND, if false, do not try to link to FREETYPE<br />  FREETYPE_INCLUDE_DIRS, where to find headers.<br />  This is the concatenation of the paths:<br />  FREETYPE_INCLUDE_DIR_ft2build<br />  FREETYPE_INCLUDE_DIR_freetype2<br /></pre>
    <p><br /></p>
<p>$FREETYPE_DIR is an environment variable that would correspond to the ./configure --prefix=$FREETYPE_DIR used in building FREETYPE.</p>

  </li>
  <li>
    <a name="module:FindGCCXML"><b><code>FindGCCXML</code></b></a>: Find the GCC-XML front-end executable.<br />
    <p><br /></p>
<p>This module will define the following variables:<br /></p>
<pre>  GCCXML - the GCC-XML front-end executable.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGDAL"><b><code>FindGDAL</code></b></a>:  <br />
    <p>Locate gdal<br /></p>
<p>This module accepts the following environment variables:<br /></p>
<pre>    GDAL_DIR or GDAL_ROOT - Specify the location of GDAL<br /></pre>
    <p><br /></p>
<p>This module defines the following CMake variables:<br /></p>
<pre>    GDAL_FOUND - True if libgdal is found<br />    GDAL_LIBRARY - A variable pointing to the GDAL library<br />    GDAL_INCLUDE_DIR - Where to find the headers<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGIF"><b><code>FindGIF</code></b></a>:  <br />
    <p>This module searches giflib and defines GIF_LIBRARIES - libraries to link to in order to use GIF GIF_FOUND, if false, do not try to link GIF_INCLUDE_DIR, where to find the headers GIF_VERSION, reports either version 4 or 3 (for everything before version 4)<br /></p>
<p>The minimum required version of giflib can be specified using the standard syntax, e.g. FIND_PACKAGE(GIF 4)<br /></p>
<p>$GIF_DIR is an environment variable that would correspond to the ./configure --prefix=$GIF_DIR</p>

  </li>
  <li>
    <a name="module:FindGLUT"><b><code>FindGLUT</code></b></a>: try to find glut library and include files<br />
    <pre>  GLUT_INCLUDE_DIR, where to find GL/glut.h, etc.<br />  GLUT_LIBRARIES, the libraries to link against<br />  GLUT_FOUND, If false, do not try to use GLUT.<br /></pre>
    <p>Also defined, but not for general use are:<br /></p>
<pre>  GLUT_glut_LIBRARY = the full path to the glut library.<br />  GLUT_Xmu_LIBRARY  = the full path to the Xmu library.<br />  GLUT_Xi_LIBRARY   = the full path to the Xi Library.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGTK"><b><code>FindGTK</code></b></a>: try to find GTK (and glib) and GTKGLArea<br />
    <pre>  GTK_INCLUDE_DIR   - Directories to include to use GTK<br />  GTK_LIBRARIES     - Files to link against to use GTK<br />  GTK_FOUND         - GTK was found<br />  GTK_GL_FOUND      - GTK's GL features were found<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGTK2"><b><code>FindGTK2</code></b></a>: FindGTK2.cmake<br />
    <p>This module can find the GTK2 widget libraries and several of its other optional components like gtkmm, glade, and glademm.<br /></p>
<p>NOTE: If you intend to use version checking, CMake 2.6.2 or later is<br /></p>
<pre>       required.<br /></pre>
    <p><br /></p>
<p>Specify one or more of the following components as you call this find module. See example below.<br /></p>
<pre>   gtk<br />   gtkmm<br />   glade<br />   glademm<br /></pre>
    <p><br /></p>
<p>The following variables will be defined for your use<br /></p>
<pre>   GTK2_FOUND - Were all of your specified components found?<br />   GTK2_INCLUDE_DIRS - All include directories<br />   GTK2_LIBRARIES - All libraries<br /></pre>
    <p><br /></p>
<pre>   GTK2_VERSION - The version of GTK2 found (x.y.z)<br />   GTK2_MAJOR_VERSION - The major version of GTK2<br />   GTK2_MINOR_VERSION - The minor version of GTK2<br />   GTK2_PATCH_VERSION - The patch version of GTK2<br /></pre>
    <p><br /></p>
<p>Optional variables you can define prior to calling this module:<br /></p>
<pre>   GTK2_DEBUG - Enables verbose debugging of the module<br />   GTK2_SKIP_MARK_AS_ADVANCED - Disable marking cache variables as advanced<br />   GTK2_ADDITIONAL_SUFFIXES - Allows defining additional directories to<br />                              search for include files<br /></pre>
    <p><br /></p>
<p>================= Example Usage:<br /></p>
<pre>   Call find_package() once, here are some examples to pick from:<br /></pre>
    <p><br /></p>
<pre>   Require GTK 2.6 or later<br />       find_package(GTK2 2.6 REQUIRED gtk)<br /></pre>
    <p><br /></p>
<pre>   Require GTK 2.10 or later and Glade<br />       find_package(GTK2 2.10 REQUIRED gtk glade)<br /></pre>
    <p><br /></p>
<pre>   Search for GTK/GTKMM 2.8 or later<br />       find_package(GTK2 2.8 COMPONENTS gtk gtkmm)<br /></pre>
    <p><br /></p>
<pre>   if(GTK2_FOUND)<br />      include_directories(${GTK2_INCLUDE_DIRS})<br />      add_executable(mygui mygui.cc)<br />      target_link_libraries(mygui ${GTK2_LIBRARIES})<br />   endif()<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindGTest"><b><code>FindGTest</code></b></a>: --------------------<br />
    <p>Locate the Google C++ Testing Framework.<br /></p>
<p>Defines the following variables:<br /></p>
<pre>   GTEST_FOUND - Found the Google Testing framework<br />   GTEST_INCLUDE_DIRS - Include directories<br /></pre>
    <p><br /></p>
<p>Also defines the library variables below as normal variables.  These contain debug/optimized keywords when a debugging library is found.<br /></p>
<pre>   GTEST_BOTH_LIBRARIES - Both libgtest &amp; libgtest-main<br />   GTEST_LIBRARIES - libgtest<br />   GTEST_MAIN_LIBRARIES - libgtest-main<br /></pre>
    <p><br /></p>
<p>Accepts the following variables as input:<br /></p>
<pre>   GTEST_ROOT - (as a CMake or environment variable)<br />                The root directory of the gtest install prefix<br /></pre>
    <p><br /></p>
<pre>   GTEST_MSVC_SEARCH - If compiling with MSVC, this variable can be set to<br />                       "MD" or "MT" to enable searching a GTest build tree<br />                       (defaults: "MD")<br /></pre>
    <p><br /></p>
<p>Example Usage:<br /></p>
<pre>    enable_testing()<br />    find_package(GTest REQUIRED)<br />    include_directories(${GTEST_INCLUDE_DIRS})<br /></pre>
    <p><br /></p>
<pre>    add_executable(foo foo.cc)<br />    target_link_libraries(foo ${GTEST_BOTH_LIBRARIES})<br /></pre>
    <p><br /></p>
<pre>    add_test(AllTestsInFoo foo)<br /></pre>
    <p><br /></p>
<p><br /></p>
<p>If you would like each Google test to show up in CTest as a test you may use the following macro. NOTE: It will slow down your tests by running an executable for each test and test fixture.  You will also have to rerun CMake after adding or removing tests or test fixtures.<br /></p>
<p>GTEST_ADD_TESTS(executable extra_args ARGN)<br /></p>
<pre>    executable = The path to the test executable<br />    extra_args = Pass a list of extra arguments to be passed to<br />                 executable enclosed in quotes (or "" for none)<br />    ARGN =       A list of source files to search for tests &amp; test<br />                 fixtures.<br /></pre>
    <p><br /></p>
<pre>  Example:<br />     set(FooTestArgs --foo 1 --bar 2)<br />     add_executable(FooTest FooUnitTest.cc)<br />     GTEST_ADD_TESTS(FooTest "${FooTestArgs}" FooUnitTest.cc)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGettext"><b><code>FindGettext</code></b></a>: Find GNU gettext tools<br />
    <p>This module looks for the GNU gettext tools. This module defines the following values:<br /></p>
<pre>  GETTEXT_MSGMERGE_EXECUTABLE: the full path to the msgmerge tool.<br />  GETTEXT_MSGFMT_EXECUTABLE: the full path to the msgfmt tool.<br />  GETTEXT_FOUND: True if gettext has been found.<br /></pre>
    <p><br /></p>
<p>Additionally it provides the following macros: GETTEXT_CREATE_TRANSLATIONS ( outputFile [ALL] file1 ... fileN )<br /></p>
<pre>    This will create a target "translations" which will convert the<br />    given input po files into the binary output mo file. If the<br />    ALL option is used, the translations will also be created when<br />    building the default target.<br /></pre>
    <p>GETTEXT_PROCESS_POT( &lt;potfile&gt; [ALL] [INSTALL_DESTINATION &lt;destdir&gt;] LANGUAGES &lt;lang1&gt; &lt;lang2&gt; ... )<br /></p>
<pre>     Process the given pot file to mo files.<br />     If INSTALL_DESTINATION is given then automatically install rules will be created,<br />     the language subdirectory will be taken into account (by default use share/locale/).<br />     If ALL is specified, the pot file is processed when building the all traget.<br />     It creates a custom target "potfile".<br /></pre>
    <p>GETTEXT_PROCESS_PO_FILES( &lt;lang&gt; [ALL] [INSTALL_DESTINATION &lt;dir&gt;] PO_FILES &lt;po1&gt; &lt;po2&gt; ... )<br /></p>
<pre>     Process the given po files to mo files for the given language.<br />     If INSTALL_DESTINATION is given then automatically install rules will be created,<br />     the language subdirectory will be taken into account (by default use share/locale/).<br />     If ALL is specified, the po files are processed when building the all traget.<br />     It creates a custom target "pofiles".<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGit"><b><code>FindGit</code></b></a>:  <br />
    <p>The module defines the following variables:<br /></p>
<pre>   GIT_EXECUTABLE - path to git command line client<br />   GIT_FOUND - true if the command line client was found<br /></pre>
    <p>Example usage:<br /></p>
<pre>   find_package(Git)<br />   if(GIT_FOUND)<br />     message("git found: ${GIT_EXECUTABLE}")<br />   endif()<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGnuTLS"><b><code>FindGnuTLS</code></b></a>: Try to find the GNU Transport Layer Security library (gnutls)<br />
    <p><br /></p>
<p>Once done this will define<br /></p>
<pre>  GNUTLS_FOUND - System has gnutls<br />  GNUTLS_INCLUDE_DIR - The gnutls include directory<br />  GNUTLS_LIBRARIES - The libraries needed to use gnutls<br />  GNUTLS_DEFINITIONS - Compiler switches required for using gnutls<br /></pre>
    
  </li>
  <li>
    <a name="module:FindGnuplot"><b><code>FindGnuplot</code></b></a>: this module looks for gnuplot<br />
    <p><br /></p>
<p>Once done this will define<br /></p>
<pre>  GNUPLOT_FOUND - system has Gnuplot<br />  GNUPLOT_EXECUTABLE - the Gnuplot executable<br /></pre>
    
  </li>
  <li>
    <a name="module:FindHDF5"><b><code>FindHDF5</code></b></a>: Find HDF5, a library for reading and writing self describing array data.<br />
    <p><br /></p>
<p>This module invokes the HDF5 wrapper compiler that should be installed alongside HDF5.  Depending upon the HDF5 Configuration, the wrapper compiler is called either h5cc or h5pcc.  If this succeeds, the module will then call the compiler with the -show argument to see what flags are used when compiling an HDF5 client application.<br /></p>
<p>The module will optionally accept the COMPONENTS argument.  If no COMPONENTS are specified, then the find module will default to finding only the HDF5 C library.  If one or more COMPONENTS are specified, the module will attempt to find the language bindings for the specified components.  The only valid components are C, CXX, Fortran, HL, and Fortran_HL.  If the COMPONENTS argument is not given, the module will attempt to find only the C bindings.<br /></p>
<p>On UNIX systems, this module will read the variable HDF5_USE_STATIC_LIBRARIES to determine whether or not to prefer a static link to a dynamic link for HDF5 and all of it's dependencies.  To use this feature, make sure that the HDF5_USE_STATIC_LIBRARIES variable is set before the call to find_package.<br /></p>
<p>To provide the module with a hint about where to find your HDF5 installation, you can set the environment variable HDF5_ROOT.  The Find module will then look in this path when searching for HDF5 executables, paths, and libraries.<br /></p>
<p>In addition to finding the includes and libraries required to compile an HDF5 client application, this module also makes an effort to find tools that come with the HDF5 distribution that may be useful for regression testing.<br /></p>
<p>This module will define the following variables:<br /></p>
<pre>  HDF5_INCLUDE_DIRS - Location of the hdf5 includes<br />  HDF5_INCLUDE_DIR - Location of the hdf5 includes (deprecated)<br />  HDF5_DEFINITIONS - Required compiler definitions for HDF5<br />  HDF5_C_LIBRARIES - Required libraries for the HDF5 C bindings.<br />  HDF5_CXX_LIBRARIES - Required libraries for the HDF5 C++ bindings<br />  HDF5_Fortran_LIBRARIES - Required libraries for the HDF5 Fortran bindings<br />  HDF5_HL_LIBRARIES - Required libraries for the HDF5 high level API<br />  HDF5_Fortran_HL_LIBRARIES - Required libraries for the high level Fortran<br />                              bindings.<br />  HDF5_LIBRARIES - Required libraries for all requested bindings<br />  HDF5_FOUND - true if HDF5 was found on the system<br />  HDF5_LIBRARY_DIRS - the full set of library directories<br />  HDF5_IS_PARALLEL - Whether or not HDF5 was found with parallel IO support<br />  HDF5_C_COMPILER_EXECUTABLE - the path to the HDF5 C wrapper compiler<br />  HDF5_CXX_COMPILER_EXECUTABLE - the path to the HDF5 C++ wrapper compiler<br />  HDF5_Fortran_COMPILER_EXECUTABLE - the path to the HDF5 Fortran wrapper compiler<br />  HDF5_DIFF_EXECUTABLE - the path to the HDF5 dataset comparison tool<br /></pre>
    
  </li>
  <li>
    <a name="module:FindHSPELL"><b><code>FindHSPELL</code></b></a>: Try to find Hspell<br />
    <p>Once done this will define<br /></p>
<pre>  HSPELL_FOUND - system has Hspell<br />  HSPELL_INCLUDE_DIR - the Hspell include directory<br />  HSPELL_LIBRARIES - The libraries needed to use Hspell<br />  HSPELL_DEFINITIONS - Compiler switches required for using Hspell<br /></pre>
    <p><br /></p>
<pre>  HSPELL_VERSION_STRING - The version of Hspell found (x.y)<br />  HSPELL_MAJOR_VERSION  - the major version of Hspell<br />  HSPELL_MINOR_VERSION  - The minor version of Hspell<br /></pre>
    
  </li>
  <li>
    <a name="module:FindHTMLHelp"><b><code>FindHTMLHelp</code></b></a>: This module looks for Microsoft HTML Help Compiler<br />
    <p>It defines:<br /></p>
<pre>   HTML_HELP_COMPILER     : full path to the Compiler (hhc.exe)<br />   HTML_HELP_INCLUDE_PATH : include path to the API (htmlhelp.h)<br />   HTML_HELP_LIBRARY      : full path to the library (htmlhelp.lib)<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindITK"><b><code>FindITK</code></b></a>: Find an ITK installation or build tree.
  </li>
  <li>
    <a name="module:FindImageMagick"><b><code>FindImageMagick</code></b></a>: Find the ImageMagick binary suite.<br />
    <p>This module will search for a set of ImageMagick tools specified as components in the FIND_PACKAGE call. Typical components include, but are not limited to (future versions of ImageMagick might have additional components not listed here):<br /></p>
<pre>  animate<br />  compare<br />  composite<br />  conjure<br />  convert<br />  display<br />  identify<br />  import<br />  mogrify<br />  montage<br />  stream<br /></pre>
    <p><br /></p>
<p>If no component is specified in the FIND_PACKAGE call, then it only searches for the ImageMagick executable directory. This code defines the following variables:<br /></p>
<pre>  ImageMagick_FOUND                  - TRUE if all components are found.<br />  ImageMagick_EXECUTABLE_DIR         - Full path to executables directory.<br />  ImageMagick_&lt;component&gt;_FOUND      - TRUE if &lt;component&gt; is found.<br />  ImageMagick_&lt;component&gt;_EXECUTABLE - Full path to &lt;component&gt; executable.<br /></pre>
    <p><br /></p>
<p>There are also components for the following ImageMagick APIs:<br /></p>
<pre>  Magick++<br />  MagickWand<br />  MagickCore<br /></pre>
    <p><br /></p>
<p>For these components the following variables are set:<br /></p>
<pre>  ImageMagick_FOUND                    - TRUE if all components are found.<br />  ImageMagick_INCLUDE_DIRS             - Full paths to all include dirs.<br />  ImageMagick_LIBRARIES                - Full paths to all libraries.<br />  ImageMagick_&lt;component&gt;_FOUND        - TRUE if &lt;component&gt; is found.<br />  ImageMagick_&lt;component&gt;_INCLUDE_DIRS - Full path to &lt;component&gt; include dirs.<br />  ImageMagick_&lt;component&gt;_LIBRARIES    - Full path to &lt;component&gt; libraries.<br /></pre>
    <p><br /></p>
<p>Example Usages:<br /></p>
<pre>  FIND_PACKAGE(ImageMagick)<br />  FIND_PACKAGE(ImageMagick COMPONENTS convert)<br />  FIND_PACKAGE(ImageMagick COMPONENTS convert mogrify display)<br />  FIND_PACKAGE(ImageMagick COMPONENTS Magick++)<br />  FIND_PACKAGE(ImageMagick COMPONENTS Magick++ convert)<br /></pre>
    <p><br /></p>
<p>Note that the standard FIND_PACKAGE features are supported (i.e., QUIET, REQUIRED, etc.).</p>

  </li>
  <li>
    <a name="module:FindJNI"><b><code>FindJNI</code></b></a>: Find JNI java libraries.<br />
    <p>This module finds if Java is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>   <br />  JNI_INCLUDE_DIRS      = the include dirs to use<br />  JNI_LIBRARIES         = the libraries to use<br />  JNI_FOUND             = TRUE if JNI headers and libraries were found.<br />  JAVA_AWT_LIBRARY      = the path to the jawt library<br />  JAVA_JVM_LIBRARY      = the path to the jvm library<br />  JAVA_INCLUDE_PATH     = the include path to jni.h<br />  JAVA_INCLUDE_PATH2    = the include path to jni_md.h<br />  JAVA_AWT_INCLUDE_PATH = the include path to jawt.h<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindJPEG"><b><code>FindJPEG</code></b></a>: Find JPEG<br />
    <p>Find the native JPEG includes and library This module defines<br /></p>
<pre>  JPEG_INCLUDE_DIR, where to find jpeglib.h, etc.<br />  JPEG_LIBRARIES, the libraries needed to use JPEG.<br />  JPEG_FOUND, If false, do not try to use JPEG.<br /></pre>
    <p>also defined, but not for general use are<br /></p>
<pre>  JPEG_LIBRARY, where to find the JPEG library.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindJasper"><b><code>FindJasper</code></b></a>: Try to find the Jasper JPEG2000 library<br />
    <p>Once done this will define<br /></p>
<pre>  JASPER_FOUND - system has Jasper<br />  JASPER_INCLUDE_DIR - the Jasper include directory<br />  JASPER_LIBRARIES - The libraries needed to use Jasper<br /></pre>
    
  </li>
  <li>
    <a name="module:FindJava"><b><code>FindJava</code></b></a>: Find Java<br />
    <p>This module finds if Java is installed and determines where the include files and libraries are. This code sets the following variables:<br /></p>
<pre>  Java_JAVA_EXECUTABLE    = the full path to the Java runtime<br />  Java_JAVAC_EXECUTABLE   = the full path to the Java compiler<br />  Java_JAVAH_EXECUTABLE   = the full path to the Java header generator<br />  Java_JAVADOC_EXECUTABLE = the full path to the Java documention generator<br />  Java_JAR_EXECUTABLE     = the full path to the Java archiver<br />  Java_VERSION_STRING     = Version of the package found (java version), eg. 1.6.0_12<br />  Java_VERSION_MAJOR      = The major version of the package found.<br />  Java_VERSION_MINOR      = The minor version of the package found.<br />  Java_VERSION_PATCH      = The patch version of the package found.<br />  Java_VERSION_TWEAK      = The tweak version of the package found (after '_')<br />  Java_VERSION            = This is set to: $major.$minor.$patch(.$tweak)<br /></pre>
    <p><br /></p>
<p>The minimum required version of Java can be specified using the standard CMake syntax, e.g. FIND_PACKAGE(Java 1.5)<br /></p>
<p>NOTE: ${Java_VERSION} and ${Java_VERSION_STRING} are not guaranteed to be identical. For example some java version may return: Java_VERSION_STRING = 1.5.0_17 and Java_VERSION        = 1.5.0.17<br /></p>
<p>another example is the Java OEM, with: Java_VERSION_STRING = 1.6.0-oem and Java_VERSION        = 1.6.0<br /></p>
<p>For these components the following variables are set:<br /></p>
<pre>  Java_FOUND                    - TRUE if all components are found.<br />  Java_INCLUDE_DIRS             - Full paths to all include dirs.<br />  Java_LIBRARIES                - Full paths to all libraries.<br />  Java_&lt;component&gt;_FOUND        - TRUE if &lt;component&gt; is found.<br /></pre>
    <p><br /></p>
<p>Example Usages:<br /></p>
<pre>  FIND_PACKAGE(Java)<br />  FIND_PACKAGE(Java COMPONENTS Runtime)<br />  FIND_PACKAGE(Java COMPONENTS Development)<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindKDE3"><b><code>FindKDE3</code></b></a>: Find the KDE3 include and library dirs, KDE preprocessors and define a some macros<br />
    <p><br /></p>
<p>This module defines the following variables:<br /></p>
<pre>  KDE3_DEFINITIONS         - compiler definitions required for compiling KDE software<br />  KDE3_INCLUDE_DIR         - the KDE include directory<br />  KDE3_INCLUDE_DIRS        - the KDE and the Qt include directory, for use with INCLUDE_DIRECTORIES()<br />  KDE3_LIB_DIR             - the directory where the KDE libraries are installed, for use with LINK_DIRECTORIES()<br />  QT_AND_KDECORE_LIBS      - this contains both the Qt and the kdecore library<br />  KDE3_DCOPIDL_EXECUTABLE  - the dcopidl executable<br />  KDE3_DCOPIDL2CPP_EXECUTABLE - the dcopidl2cpp executable<br />  KDE3_KCFGC_EXECUTABLE    - the kconfig_compiler executable<br />  KDE3_FOUND               - set to TRUE if all of the above has been found<br /></pre>
    <p><br /></p>
<p>The following user adjustable options are provided:<br /></p>
<pre>  KDE3_BUILD_TESTS - enable this to build KDE testcases<br /></pre>
    <p><br /></p>
<p><br /></p>
<p>It also adds the following macros (from KDE3Macros.cmake) SRCS_VAR is always the variable which contains the list of source files for your application or library.<br /></p>
<p>KDE3_AUTOMOC(file1 ... fileN)<br /></p>
<pre>    Call this if you want to have automatic moc file handling.<br />    This means if you include "foo.moc" in the source file foo.cpp<br />    a moc file for the header foo.h will be created automatically.<br />    You can set the property SKIP_AUTOMAKE using SET_SOURCE_FILES_PROPERTIES()<br />    to exclude some files in the list from being processed.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_MOC_FILES(SRCS_VAR file1 ... fileN )<br /></p>
<pre>    If you don't use the KDE3_AUTOMOC() macro, for the files<br />    listed here moc files will be created (named "foo.moc.cpp")<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_DCOP_SKELS(SRCS_VAR header1.h ... headerN.h )<br /></p>
<pre>    Use this to generate DCOP skeletions from the listed headers.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_DCOP_STUBS(SRCS_VAR header1.h ... headerN.h )<br /></p>
<pre>     Use this to generate DCOP stubs from the listed headers.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_UI_FILES(SRCS_VAR file1.ui ... fileN.ui )<br /></p>
<pre>    Use this to add the Qt designer ui files to your application/library.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_KCFG_FILES(SRCS_VAR file1.kcfgc ... fileN.kcfgc )<br /></p>
<pre>    Use this to add KDE kconfig compiler files to your application/library.<br /></pre>
    <p><br /></p>
<p>KDE3_INSTALL_LIBTOOL_FILE(target)<br /></p>
<pre>    This will create and install a simple libtool file for the given target.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_EXECUTABLE(name file1 ... fileN )<br /></p>
<pre>    Currently identical to ADD_EXECUTABLE(), may provide some advanced features in the future.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_KPART(name [WITH_PREFIX] file1 ... fileN )<br /></p>
<pre>    Create a KDE plugin (KPart, kioslave, etc.) from the given source files.<br />    If WITH_PREFIX is given, the resulting plugin will have the prefix "lib", otherwise it won't.<br />    It creates and installs an appropriate libtool la-file.<br /></pre>
    <p><br /></p>
<p>KDE3_ADD_KDEINIT_EXECUTABLE(name file1 ... fileN )<br /></p>
<pre>    Create a KDE application in the form of a module loadable via kdeinit.<br />    A library named kdeinit_&lt;name&gt; will be created and a small executable which links to it.<br /></pre>
    <p><br /></p>
<p>The option KDE3_ENABLE_FINAL to enable all-in-one compilation is no longer supported.<br /></p>
<p><br /></p>
<p>Author: Alexander Neundorf &lt;neundorf@kde.org&gt;</p>

  </li>
  <li>
    <a name="module:FindKDE4"><b><code>FindKDE4</code></b></a>:  <br />
    <p>Find KDE4 and provide all necessary variables and macros to compile software for it. It looks for KDE 4 in the following directories in the given order:<br /></p>
<pre>  CMAKE_INSTALL_PREFIX<br />  KDEDIRS<br />  /opt/kde4<br /></pre>
    <p><br /></p>
<p>Please look in FindKDE4Internal.cmake and KDE4Macros.cmake for more information. They are installed with the KDE 4 libraries in $KDEDIRS/share/apps/cmake/modules/.<br /></p>
<p>Author: Alexander Neundorf &lt;neundorf@kde.org&gt;</p>

  </li>
  <li>
    <a name="module:FindLAPACK"><b><code>FindLAPACK</code></b></a>: Find LAPACK library<br />
    <p>This module finds an installed fortran library that implements the LAPACK linear-algebra interface (see <a href="http://www.netlib.org/lapack/">http://www.netlib.org/lapack/</a>).<br /></p>
<p>The approach follows that taken for the autoconf macro file, acx_lapack.m4 (distributed at <a href="http://ac-archive.sourceforge.net/ac-archive/acx_lapack.html">http://ac-archive.sourceforge.net/ac-archive/acx_lapack.html</a>).<br /></p>
<p>This module sets the following variables:<br /></p>
<pre>  LAPACK_FOUND - set to true if a library implementing the LAPACK interface<br />    is found<br />  LAPACK_LINKER_FLAGS - uncached list of required linker flags (excluding -l<br />    and -L).<br />  LAPACK_LIBRARIES - uncached list of libraries (using full path name) to<br />    link against to use LAPACK<br />  LAPACK95_LIBRARIES - uncached list of libraries (using full path name) to<br />    link against to use LAPACK95<br />  LAPACK95_FOUND - set to true if a library implementing the LAPACK f95<br />    interface is found<br />  BLA_STATIC  if set on this determines what kind of linkage we do (static)<br />  BLA_VENDOR  if set checks only the specified vendor, if not set checks<br />     all the possibilities<br />  BLA_F95     if set on tries to find the f95 interfaces for BLAS/LAPACK<br /></pre>
    <p>## List of vendors (BLA_VENDOR) valid in this module #  Intel(mkl), ACML,Apple, NAS, Generic</p>

  </li>
  <li>
    <a name="module:FindLATEX"><b><code>FindLATEX</code></b></a>: Find Latex<br />
    <p>This module finds if Latex is installed and determines where the executables are. This code sets the following variables:<br /></p>
<pre>  <br />  LATEX_COMPILER:       path to the LaTeX compiler<br />  PDFLATEX_COMPILER:    path to the PdfLaTeX compiler<br />  BIBTEX_COMPILER:      path to the BibTeX compiler<br />  MAKEINDEX_COMPILER:   path to the MakeIndex compiler<br />  DVIPS_CONVERTER:      path to the DVIPS converter<br />  PS2PDF_CONVERTER:     path to the PS2PDF converter<br />  LATEX2HTML_CONVERTER: path to the LaTeX2Html converter <br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindLibArchive"><b><code>FindLibArchive</code></b></a>: Find libarchive library and headers<br />
    <p>The module defines the following variables:<br /></p>
<pre>  LibArchive_FOUND        - true if libarchive was found<br />  LibArchive_INCLUDE_DIRS - include search path<br />  LibArchive_LIBRARIES    - libraries to link<br />  LibArchive_VERSION      - libarchive 3-component version number<br /></pre>
    
  </li>
  <li>
    <a name="module:FindLibXml2"><b><code>FindLibXml2</code></b></a>: Try to find the LibXml2 xml processing library<br />
    <p>Once done this will define<br /></p>
<pre>  LIBXML2_FOUND - System has LibXml2<br />  LIBXML2_INCLUDE_DIR - The LibXml2 include directory<br />  LIBXML2_LIBRARIES - The libraries needed to use LibXml2<br />  LIBXML2_DEFINITIONS - Compiler switches required for using LibXml2<br />  LIBXML2_XMLLINT_EXECUTABLE - The XML checking tool xmllint coming with LibXml2<br /></pre>
    
  </li>
  <li>
    <a name="module:FindLibXslt"><b><code>FindLibXslt</code></b></a>: Try to find the LibXslt library<br />
    <p>Once done this will define<br /></p>
<pre>  LIBXSLT_FOUND - system has LibXslt<br />  LIBXSLT_INCLUDE_DIR - the LibXslt include directory<br />  LIBXSLT_LIBRARIES - Link these to LibXslt<br />  LIBXSLT_DEFINITIONS - Compiler switches required for using LibXslt<br /></pre>
    <p>Additionally, the following two variables are set (but not required for using xslt):<br /></p>
<pre>  LIBXSLT_EXSLT_LIBRARIES - Link to these if you need to link against the exslt library<br />  LIBXSLT_XSLTPROC_EXECUTABLE - Contains the full path to the xsltproc executable if found<br /></pre>
    
  </li>
  <li>
    <a name="module:FindLua50"><b><code>FindLua50</code></b></a>:  <br />
    <p>Locate Lua library This module defines<br /></p>
<pre>  LUA50_FOUND, if false, do not try to link to Lua <br />  LUA_LIBRARIES, both lua and lualib<br />  LUA_INCLUDE_DIR, where to find lua.h and lualib.h (and probably lauxlib.h)<br /></pre>
    <p><br /></p>
<p>Note that the expected include convention is<br /></p>
<pre>  #include "lua.h"<br /></pre>
    <p>and not<br /></p>
<pre>  #include &lt;lua/lua.h&gt;<br /></pre>
    <p>This is because, the lua location is not standardized and may exist in locations other than lua/</p>

  </li>
  <li>
    <a name="module:FindLua51"><b><code>FindLua51</code></b></a>:  <br />
    <p>Locate Lua library This module defines<br /></p>
<pre>  LUA51_FOUND, if false, do not try to link to Lua <br />  LUA_LIBRARIES<br />  LUA_INCLUDE_DIR, where to find lua.h <br /></pre>
    <p><br /></p>
<p>Note that the expected include convention is<br /></p>
<pre>  #include "lua.h"<br /></pre>
    <p>and not<br /></p>
<pre>  #include &lt;lua/lua.h&gt;<br /></pre>
    <p>This is because, the lua location is not standardized and may exist in locations other than lua/</p>

  </li>
  <li>
    <a name="module:FindMFC"><b><code>FindMFC</code></b></a>: Find MFC on Windows<br />
    <p>Find the native MFC - i.e. decide if an application can link to the MFC libraries.<br /></p>
<pre>  MFC_FOUND - Was MFC support found<br /></pre>
    <p>You don't need to include anything or link anything to use it.</p>

  </li>
  <li>
    <a name="module:FindMPEG"><b><code>FindMPEG</code></b></a>: Find the native MPEG includes and library<br />
    <p>This module defines<br /></p>
<pre>  MPEG_INCLUDE_DIR, where to find MPEG.h, etc.<br />  MPEG_LIBRARIES, the libraries required to use MPEG.<br />  MPEG_FOUND, If false, do not try to use MPEG.<br /></pre>
    <p>also defined, but not for general use are<br /></p>
<pre>  MPEG_mpeg2_LIBRARY, where to find the MPEG library.<br />  MPEG_vo_LIBRARY, where to find the vo library.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindMPEG2"><b><code>FindMPEG2</code></b></a>: Find the native MPEG2 includes and library<br />
    <p>This module defines<br /></p>
<pre>  MPEG2_INCLUDE_DIR, path to mpeg2dec/mpeg2.h, etc.<br />  MPEG2_LIBRARIES, the libraries required to use MPEG2.<br />  MPEG2_FOUND, If false, do not try to use MPEG2.<br /></pre>
    <p>also defined, but not for general use are<br /></p>
<pre>  MPEG2_mpeg2_LIBRARY, where to find the MPEG2 library.<br />  MPEG2_vo_LIBRARY, where to find the vo library.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindMPI"><b><code>FindMPI</code></b></a>: Find a Message Passing Interface (MPI) implementation<br />
    <p>The Message Passing Interface (MPI) is a library used to write high-performance distributed-memory parallel applications, and is typically deployed on a cluster. MPI is a standard interface (defined by the MPI forum) for which many implementations are available. All of them have somewhat different include paths, libraries to link against, etc., and this module tries to smooth out those differences.<br /></p>
<p>=== Variables ===<br /></p>
<p>This module will set the following variables per language in your project, where &lt;lang&gt; is one of C, CXX, or Fortran:<br /></p>
<pre>   MPI_&lt;lang&gt;_FOUND           TRUE if FindMPI found MPI flags for &lt;lang&gt;<br />   MPI_&lt;lang&gt;_COMPILER        MPI Compiler wrapper for &lt;lang&gt;<br />   MPI_&lt;lang&gt;_COMPILE_FLAGS   Compilation flags for MPI programs<br />   MPI_&lt;lang&gt;_INCLUDE_PATH    Include path(s) for MPI header<br />   MPI_&lt;lang&gt;_LINK_FLAGS      Linking flags for MPI programs<br />   MPI_&lt;lang&gt;_LIBRARIES       All libraries to link MPI programs against<br /></pre>
    <p>Additionally, FindMPI sets the following variables for running MPI programs from the command line:<br /></p>
<pre>   MPIEXEC                    Executable for running MPI programs<br />   MPIEXEC_NUMPROC_FLAG       Flag to pass to MPIEXEC before giving<br />                              it the number of processors to run on<br />   MPIEXEC_PREFLAGS           Flags to pass to MPIEXEC directly<br />                              before the executable to run.<br />   MPIEXEC_POSTFLAGS          Flags to pass to MPIEXEC after other flags<br /></pre>
    <p>=== Usage ===<br /></p>
<p>To use this module, simply call FindMPI from a CMakeLists.txt file, or run find_package(MPI), then run CMake.  If you are happy with the auto- detected configuration for your language, then you're done.  If not, you have two options:<br /></p>
<pre>   1. Set MPI_&lt;lang&gt;_COMPILER to the MPI wrapper (mpicc, etc.) of your<br />      choice and reconfigure.  FindMPI will attempt to determine all the<br />      necessary variables using THAT compiler's compile and link flags.<br />   2. If this fails, or if your MPI implementation does not come with<br />      a compiler wrapper, then set both MPI_&lt;lang&gt;_LIBRARIES and<br />      MPI_&lt;lang&gt;_INCLUDE_PATH.  You may also set any other variables<br />      listed above, but these two are required.  This will circumvent<br />      autodetection entirely.<br /></pre>
    <p>When configuration is successful, MPI_&lt;lang&gt;_COMPILER will be set to the compiler wrapper for &lt;lang&gt;, if it was found.  MPI_&lt;lang&gt;_FOUND and other variables above will be set if any MPI implementation was found for &lt;lang&gt;, regardless of whether a compiler was found.<br /></p>
<p>When using MPIEXEC to execute MPI applications, you should typically use all of the MPIEXEC flags as follows:<br /></p>
<pre>   ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} PROCS<br />     ${MPIEXEC_PREFLAGS} EXECUTABLE ${MPIEXEC_POSTFLAGS} ARGS<br /></pre>
    <p>where PROCS is the number of processors on which to execute the program, EXECUTABLE is the MPI program, and ARGS are the arguments to pass to the MPI program.<br /></p>
<p>=== Backward Compatibility ===<br /></p>
<p>For backward compatibility with older versions of FindMPI, these variables are set, but deprecated:<br /></p>
<pre>   MPI_FOUND           MPI_COMPILER        MPI_LIBRARY<br />   MPI_COMPILE_FLAGS   MPI_INCLUDE_PATH    MPI_EXTRA_LIBRARY<br />   MPI_LINK_FLAGS      MPI_LIBRARIES<br /></pre>
    <p>In new projects, please use the MPI_&lt;lang&gt;_XXX equivalents.</p>

  </li>
  <li>
    <a name="module:FindMatlab"><b><code>FindMatlab</code></b></a>: this module looks for Matlab<br />
    <p>Defines:<br /></p>
<pre>  MATLAB_INCLUDE_DIR: include path for mex.h, engine.h<br />  MATLAB_LIBRARIES:   required libraries: libmex, etc<br />  MATLAB_MEX_LIBRARY: path to libmex.lib<br />  MATLAB_MX_LIBRARY:  path to libmx.lib<br />  MATLAB_ENG_LIBRARY: path to libeng.lib<br /></pre>
    
  </li>
  <li>
    <a name="module:FindMotif"><b><code>FindMotif</code></b></a>: Try to find Motif (or lesstif)<br />
    <p>Once done this will define:<br /></p>
<pre>  MOTIF_FOUND        - system has MOTIF<br />  MOTIF_INCLUDE_DIR  - include paths to use Motif<br />  MOTIF_LIBRARIES    - Link these to use Motif<br /></pre>
    
  </li>
  <li>
    <a name="module:FindOpenAL"><b><code>FindOpenAL</code></b></a>:  <br />
    <p>Locate OpenAL This module defines OPENAL_LIBRARY OPENAL_FOUND, if false, do not try to link to OpenAL  OPENAL_INCLUDE_DIR, where to find the headers<br /></p>
<p>$OPENALDIR is an environment variable that would correspond to the ./configure --prefix=$OPENALDIR used in building OpenAL.<br /></p>
<p>Created by Eric Wing. This was influenced by the FindSDL.cmake module.</p>

  </li>
  <li>
    <a name="module:FindOpenGL"><b><code>FindOpenGL</code></b></a>: Try to find OpenGL<br />
    <p>Once done this will define<br /></p>
<pre>  <br />  OPENGL_FOUND        - system has OpenGL<br />  OPENGL_XMESA_FOUND  - system has XMESA<br />  OPENGL_GLU_FOUND    - system has GLU<br />  OPENGL_INCLUDE_DIR  - the GL include directory<br />  OPENGL_LIBRARIES    - Link these to use OpenGL and GLU<br />   <br /></pre>
    <p>If you want to use just GL you can use these values<br /></p>
<pre>  OPENGL_gl_LIBRARY   - Path to OpenGL Library<br />  OPENGL_glu_LIBRARY  - Path to GLU Library<br />  <br /></pre>
    <p>On OSX default to using the framework version of opengl People will have to change the cache values of OPENGL_glu_LIBRARY  and OPENGL_gl_LIBRARY to use OpenGL with X11 on OSX</p>

  </li>
  <li>
    <a name="module:FindOpenMP"><b><code>FindOpenMP</code></b></a>: Finds OpenMP support<br />
    <p>This module can be used to detect OpenMP support in a compiler. If the compiler supports OpenMP, the flags required to compile with openmp support are set.  <br /></p>
<p>The following variables are set:<br /></p>
<pre>   OpenMP_C_FLAGS - flags to add to the C compiler for OpenMP support<br />   OpenMP_CXX_FLAGS - flags to add to the CXX compiler for OpenMP support<br />   OPENMP_FOUND - true if openmp is detected<br /></pre>
    <p><br /></p>
<p>Supported compilers can be found at <a href="http://openmp.org/wp/openmp-compilers/">http://openmp.org/wp/openmp-compilers/</a></p>

  </li>
  <li>
    <a name="module:FindOpenSSL"><b><code>FindOpenSSL</code></b></a>: Try to find the OpenSSL encryption library<br />
    <p>Once done this will define<br /></p>
<pre>  OPENSSL_ROOT_DIR - Set this variable to the root installation of OpenSSL<br /></pre>
    <p><br /></p>
<p>Read-Only variables:<br /></p>
<pre>  OPENSSL_FOUND - system has the OpenSSL library<br />  OPENSSL_INCLUDE_DIR - the OpenSSL include directory<br />  OPENSSL_LIBRARIES - The libraries needed to use OpenSSL<br />  OPENSSL_VERSION - This is set to $major.$minor.$revision (eg. 0.9.8)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindOpenSceneGraph"><b><code>FindOpenSceneGraph</code></b></a>: Find OpenSceneGraph<br />
    <p>This module searches for the OpenSceneGraph core "osg" library as well as OpenThreads, and whatever additional COMPONENTS (nodekits) that you specify.<br /></p>
<pre>    See <a href="http://www.openscenegraph.org">http://www.openscenegraph.org</a><br /></pre>
    <p><br /></p>
<p>NOTE: To use this module effectively you must either require CMake &gt;= 2.6.3 with cmake_minimum_required(VERSION 2.6.3) or download and place FindOpenThreads.cmake, Findosg_functions.cmake, Findosg.cmake, and Find&lt;etc&gt;.cmake files into your CMAKE_MODULE_PATH.<br /></p>
<p>==================================<br /></p>
<p>This module accepts the following variables (note mixed case)<br /></p>
<pre>    OpenSceneGraph_DEBUG - Enable debugging output<br /></pre>
    <p><br /></p>
<pre>    OpenSceneGraph_MARK_AS_ADVANCED - Mark cache variables as advanced <br />                                      automatically<br /></pre>
    <p><br /></p>
<p>The following environment variables are also respected for finding the OSG and it's various components.  CMAKE_PREFIX_PATH can also be used for this (see find_library() CMake documentation).<br /></p>
<pre>    &lt;MODULE&gt;_DIR (where MODULE is of the form "OSGVOLUME" and there is a FindosgVolume.cmake file)<br />    OSG_DIR<br />    OSGDIR<br />    OSG_ROOT<br /></pre>
    <p><br /></p>
<p>This module defines the following output variables:<br /></p>
<pre>    OPENSCENEGRAPH_FOUND - Was the OSG and all of the specified components found?<br /></pre>
    <p><br /></p>
<pre>    OPENSCENEGRAPH_VERSION - The version of the OSG which was found<br /></pre>
    <p><br /></p>
<pre>    OPENSCENEGRAPH_INCLUDE_DIRS - Where to find the headers<br /></pre>
    <p><br /></p>
<pre>    OPENSCENEGRAPH_LIBRARIES - The OSG libraries<br /></pre>
    <p><br /></p>
<p>================================== Example Usage:<br /></p>
<pre>  find_package(OpenSceneGraph 2.0.0 REQUIRED osgDB osgUtil)<br />      # libOpenThreads &amp; libosg automatically searched<br />  include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS})<br /></pre>
    <p><br /></p>
<pre>  add_executable(foo foo.cc)<br />  target_link_libraries(foo ${OPENSCENEGRAPH_LIBRARIES})<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindOpenThreads"><b><code>FindOpenThreads</code></b></a>:  <br />
    <p>OpenThreads is a C++ based threading library. Its largest userbase  seems to OpenSceneGraph so you might notice I accept OSGDIR as an environment path. I consider this part of the Findosg* suite used to find OpenSceneGraph  components. Each component is separate and you must opt in to each module.<br /></p>
<p>Locate OpenThreads This module defines OPENTHREADS_LIBRARY OPENTHREADS_FOUND, if false, do not try to link to OpenThreads OPENTHREADS_INCLUDE_DIR, where to find the headers<br /></p>
<p>$OPENTHREADS_DIR is an environment variable that would correspond to the ./configure --prefix=$OPENTHREADS_DIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindPHP4"><b><code>FindPHP4</code></b></a>: Find PHP4<br />
    <p>This module finds if PHP4 is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  PHP4_INCLUDE_PATH       = path to where php.h can be found<br />  PHP4_EXECUTABLE         = full path to the php4 binary<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindPNG"><b><code>FindPNG</code></b></a>: Find the native PNG includes and library<br />
    <p><br /></p>
<p>This module searches libpng, the library for working with PNG images.<br /></p>
<p>It defines the following variables<br /></p>
<pre>  PNG_INCLUDE_DIRS, where to find png.h, etc.<br />  PNG_LIBRARIES, the libraries to link against to use PNG.<br />  PNG_DEFINITIONS - You should add_definitons(${PNG_DEFINITIONS}) before compiling code that includes png library files.<br />  PNG_FOUND, If false, do not try to use PNG.<br /></pre>
    <p>Also defined, but not for general use are<br /></p>
<pre>  PNG_LIBRARY, where to find the PNG library.<br /></pre>
    <p>For backward compatiblity the variable PNG_INCLUDE_DIR is also set. It has the same value as PNG_INCLUDE_DIRS.<br /></p>
<p>Since PNG depends on the ZLib compression library, none of the above will be defined unless ZLib can be found.</p>

  </li>
  <li>
    <a name="module:FindPackageHandleStandardArgs"><b><code>FindPackageHandleStandardArgs</code></b></a>:  <br />
    <p>FIND_PACKAGE_HANDLE_STANDARD_ARGS(&lt;name&gt; ... )<br /></p>
<p>This function is intended to be used in FindXXX.cmake modules files. It handles the REQUIRED, QUIET and version-related arguments to FIND_PACKAGE(). It also sets the &lt;UPPERCASED_NAME&gt;_FOUND variable. The package is considered found if all variables &lt;var1&gt;... listed contain valid results, e.g. valid filepaths.<br /></p>
<p>There are two modes of this function. The first argument in both modes is the name of the Find-module where it is called (in original casing).<br /></p>
<p>The first simple mode looks like this:<br /></p>
<pre>    FIND_PACKAGE_HANDLE_STANDARD_ARGS(&lt;name&gt; (DEFAULT_MSG|"Custom failure message") &lt;var1&gt;...&lt;varN&gt; )<br /></pre>
    <p>If the variables &lt;var1&gt; to &lt;varN&gt; are all valid, then &lt;UPPERCASED_NAME&gt;_FOUND will be set to TRUE. If DEFAULT_MSG is given as second argument, then the function will generate itself useful success and error messages. You can also supply a custom error message for the failure case. This is not recommended.<br /></p>
<p>The second mode is more powerful and also supports version checking:<br /></p>
<pre>    FIND_PACKAGE_HANDLE_STANDARD_ARGS(NAME [REQUIRED_VARS &lt;var1&gt;...&lt;varN&gt;]<br />                                           [VERSION_VAR   &lt;versionvar&gt;<br />                                           [CONFIG_MODE]<br />                                           [FAIL_MESSAGE "Custom failure message"] )<br /></pre>
    <p><br /></p>
<p>As above, if &lt;var1&gt; through &lt;varN&gt; are all valid, &lt;UPPERCASED_NAME&gt;_FOUND will be set to TRUE. After REQUIRED_VARS the variables which are required for this package are listed. Following VERSION_VAR the name of the variable can be specified which holds the version of the package which has been found. If this is done, this version will be checked against the (potentially) specified required version used in the find_package() call. The EXACT keyword is also handled. The default messages include information about the required version and the version which has been actually found, both if the version is ok or not. Use the option CONFIG_MODE if your FindXXX.cmake module is a wrapper for a find_package(... NO_MODULE) call, in this case all the information provided by the config-mode of find_package() will be evaluated automatically. Via FAIL_MESSAGE a custom failure message can be specified, if this is not used, the default message will be displayed.<br /></p>
<p>Example for mode 1:<br /></p>
<pre>    FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXml2  DEFAULT_MSG  LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)<br /></pre>
    <p><br /></p>
<p>LibXml2 is considered to be found, if both LIBXML2_LIBRARY and LIBXML2_INCLUDE_DIR are valid. Then also LIBXML2_FOUND is set to TRUE. If it is not found and REQUIRED was used, it fails with FATAL_ERROR, independent whether QUIET was used or not. If it is found, success will be reported, including the content of &lt;var1&gt;. On repeated Cmake runs, the same message won't be printed again.<br /></p>
<p>Example for mode 2:<br /></p>
<pre>    FIND_PACKAGE_HANDLE_STANDARD_ARGS(BISON  REQUIRED_VARS BISON_EXECUTABLE<br />                                             VERSION_VAR BISON_VERSION)<br /></pre>
    <p>In this case, BISON is considered to be found if the variable(s) listed after REQUIRED_VAR are all valid, i.e. BISON_EXECUTABLE in this case. Also the version of BISON will be checked by using the version contained in BISON_VERSION. Since no FAIL_MESSAGE is given, the default messages will be printed.<br /></p>
<p>Another example for mode 2:<br /></p>
<pre>    FIND_PACKAGE(Automoc4 QUIET NO_MODULE HINTS /opt/automoc4)<br />    FIND_PACKAGE_HANDLE_STANDARD_ARGS(Automoc4  CONFIG_MODE)<br /></pre>
    <p>In this case, FindAutmoc4.cmake wraps a call to FIND_PACKAGE(Automoc4 NO_MODULE) and adds an additional search directory for automoc4. The following FIND_PACKAGE_HANDLE_STANDARD_ARGS() call produces a proper success/error message.</p>

  </li>
  <li>
    <a name="module:FindPackageMessage"><b><code>FindPackageMessage</code></b></a>:  <br />
    <p>FIND_PACKAGE_MESSAGE(&lt;name&gt; "message for user" "find result details")<br /></p>
<p>This macro is intended to be used in FindXXX.cmake modules files. It will print a message once for each unique find result. This is useful for telling the user where a package was found. The first argument specifies the name (XXX) of the package. The second argument specifies the message to display. The third argument lists details about the find result so that if they change the message will be displayed again. The macro also obeys the QUIET argument to the find_package command.<br /></p>
<p>Example:<br /></p>
<pre>  IF(X11_FOUND)<br />    FIND_PACKAGE_MESSAGE(X11 "Found X11: ${X11_X11_LIB}"<br />      "[${X11_X11_LIB}][${X11_INCLUDE_DIR}]")<br />  ELSE(X11_FOUND)<br />   ...<br />  ENDIF(X11_FOUND)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindPerl"><b><code>FindPerl</code></b></a>: Find perl<br />
    <p>this module looks for Perl<br /></p>
<pre>  PERL_EXECUTABLE - the full path to perl<br />  PERL_FOUND      - If false, don't attempt to use perl.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindPerlLibs"><b><code>FindPerlLibs</code></b></a>: Find Perl libraries<br />
    <p>This module finds if PERL is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  PERLLIBS_FOUND    = True if perl.h &amp; libperl were found<br />  PERL_INCLUDE_PATH = path to where perl.h is found<br />  PERL_LIBRARY      = path to libperl<br />  PERL_EXECUTABLE   = full path to the perl binary<br /></pre>
    <p><br /></p>
<p>The minimum required version of Perl can be specified using the standard syntax, e.g. FIND_PACKAGE(PerlLibs 6.0)<br /></p>
<pre>  The following variables are also available if needed<br />  (introduced after CMake 2.6.4)<br /></pre>
    <p><br /></p>
<pre>  PERL_SITESEARCH    = path to the sitesearch install dir<br />  PERL_SITELIB       = path to the sitelib install directory<br />  PERL_VENDORARCH    = path to the vendor arch install directory<br />  PERL_VENDORLIB     = path to the vendor lib install directory<br />  PERL_ARCHLIB       = path to the arch lib install directory<br />  PERL_PRIVLIB       = path to the priv lib install directory<br />  PERL_EXTRA_C_FLAGS = Compilation flags used to build perl<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindPhysFS"><b><code>FindPhysFS</code></b></a>:  <br />
    <p>Locate PhysFS library This module defines PHYSFS_LIBRARY, the name of the library to link against PHYSFS_FOUND, if false, do not try to link to PHYSFS PHYSFS_INCLUDE_DIR, where to find physfs.h<br /></p>
<p>$PHYSFSDIR is an environment variable that would correspond to the ./configure --prefix=$PHYSFSDIR used in building PHYSFS.<br /></p>
<p>Created by Eric Wing. </p>

  </li>
  <li>
    <a name="module:FindPike"><b><code>FindPike</code></b></a>: Find Pike<br />
    <p>This module finds if PIKE is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  PIKE_INCLUDE_PATH       = path to where program.h is found<br />  PIKE_EXECUTABLE         = full path to the pike binary<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindPkgConfig"><b><code>FindPkgConfig</code></b></a>: a pkg-config module for CMake<br />
    <p><br /></p>
<p>Usage:<br /></p>
<pre>   pkg_check_modules(&lt;PREFIX&gt; [REQUIRED] [QUIET] &lt;MODULE&gt; [&lt;MODULE&gt;]*)<br />     checks for all the given modules<br /></pre>
    <p><br /></p>
<pre>   pkg_search_module(&lt;PREFIX&gt; [REQUIRED] [QUIET] &lt;MODULE&gt; [&lt;MODULE&gt;]*)<br />     checks for given modules and uses the first working one<br /></pre>
    <p><br /></p>
<p>When the 'REQUIRED' argument was set, macros will fail with an error when module(s) could not be found<br /></p>
<p>When the 'QUIET' argument is set, no status messages will be printed.<br /></p>
<p>It sets the following variables:<br /></p>
<pre>   PKG_CONFIG_FOUND         ... true if pkg-config works on the system<br />   PKG_CONFIG_EXECUTABLE    ... pathname of the pkg-config program<br />   &lt;PREFIX&gt;_FOUND           ... set to 1 if module(s) exist<br /></pre>
    <p><br /></p>
<p>For the following variables two sets of values exist; first one is the common one and has the given PREFIX. The second set contains flags which are given out when pkgconfig was called with the '--static' option.<br /></p>
<pre>   &lt;XPREFIX&gt;_LIBRARIES      ... only the libraries (w/o the '-l')<br />   &lt;XPREFIX&gt;_LIBRARY_DIRS   ... the paths of the libraries (w/o the '-L')<br />   &lt;XPREFIX&gt;_LDFLAGS        ... all required linker flags<br />   &lt;XPREFIX&gt;_LDFLAGS_OTHER  ... all other linker flags<br />   &lt;XPREFIX&gt;_INCLUDE_DIRS   ... the '-I' preprocessor flags (w/o the '-I')<br />   &lt;XPREFIX&gt;_CFLAGS         ... all required cflags<br />   &lt;XPREFIX&gt;_CFLAGS_OTHER   ... the other compiler flags<br /></pre>
    <p><br /></p>
<pre>   &lt;XPREFIX&gt; = &lt;PREFIX&gt;        for common case<br />   &lt;XPREFIX&gt; = &lt;PREFIX&gt;_STATIC for static linking<br /></pre>
    <p><br /></p>
<p>There are some special variables whose prefix depends on the count of given modules. When there is only one module, &lt;PREFIX&gt; stays unchanged. When there are multiple modules, the prefix will be changed to &lt;PREFIX&gt;_&lt;MODNAME&gt;:<br /></p>
<pre>   &lt;XPREFIX&gt;_VERSION    ... version of the module<br />   &lt;XPREFIX&gt;_PREFIX     ... prefix-directory of the module<br />   &lt;XPREFIX&gt;_INCLUDEDIR ... include-dir of the module<br />   &lt;XPREFIX&gt;_LIBDIR     ... lib-dir of the module<br /></pre>
    <p><br /></p>
<pre>   &lt;XPREFIX&gt; = &lt;PREFIX&gt;  when |MODULES| == 1, else<br />   &lt;XPREFIX&gt; = &lt;PREFIX&gt;_&lt;MODNAME&gt;<br /></pre>
    <p><br /></p>
<p>A &lt;MODULE&gt; parameter can have the following formats:<br /></p>
<pre>   {MODNAME}            ... matches any version<br />   {MODNAME}&gt;={VERSION} ... at least version &lt;VERSION&gt; is required<br />   {MODNAME}={VERSION}  ... exactly version &lt;VERSION&gt; is required<br />   {MODNAME}&lt;={VERSION} ... modules must not be newer than &lt;VERSION&gt;<br /></pre>
    <p><br /></p>
<p>Examples<br /></p>
<pre>   pkg_check_modules (GLIB2   glib-2.0)<br /></pre>
    <p><br /></p>
<pre>   pkg_check_modules (GLIB2   glib-2.0&gt;=2.10)<br />     requires at least version 2.10 of glib2 and defines e.g.<br />       GLIB2_VERSION=2.10.3<br /></pre>
    <p><br /></p>
<pre>   pkg_check_modules (FOO     glib-2.0&gt;=2.10 gtk+-2.0)<br />     requires both glib2 and gtk2, and defines e.g.<br />       FOO_glib-2.0_VERSION=2.10.3<br />       FOO_gtk+-2.0_VERSION=2.8.20<br /></pre>
    <p><br /></p>
<pre>   pkg_check_modules (XRENDER REQUIRED xrender)<br />     defines e.g.:<br />       XRENDER_LIBRARIES=Xrender;X11<br />       XRENDER_STATIC_LIBRARIES=Xrender;X11;pthread;Xau;Xdmcp<br /></pre>
    <p><br /></p>
<pre>   pkg_search_module (BAR     libxml-2.0 libxml2 libxml&gt;=2)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindPostgreSQL"><b><code>FindPostgreSQL</code></b></a>: Find the PostgreSQL installation.<br />
    <p>Usage: In your CMakeLists.txt file do something like this: ... # PostgreSQL FIND_PACKAGE(PostgreSQL) ... if( PostgreSQL_FOUND )<br /></p>
<pre>   include_directories(${PostgreSQL_INCLUDE_DIRS})<br /></pre>
    <p>endif( PostgreSQL_FOUND ) ... Remember to include ${PostgreSQL_LIBRARIES} in the target_link_libraries() statement.<br /></p>
<p><br /></p>
<p>In Windows, we make the assumption that, if the PostgreSQL files are installed, the default directory will be C:\Program Files\PostgreSQL.<br /></p>

  </li>
  <li>
    <a name="module:FindProducer"><b><code>FindProducer</code></b></a>:  <br />
    <p>Though Producer isn't directly part of OpenSceneGraph, its primary user is OSG so I consider this part of the Findosg* suite used to find  OpenSceneGraph components. You'll notice that I accept OSGDIR as an environment path.<br /></p>
<p>Each component is separate and you must opt in to each module. You must  also opt into OpenGL (and OpenThreads?) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate Producer This module defines PRODUCER_LIBRARY PRODUCER_FOUND, if false, do not try to link to Producer PRODUCER_INCLUDE_DIR, where to find the headers<br /></p>
<p>$PRODUCER_DIR is an environment variable that would correspond to the ./configure --prefix=$PRODUCER_DIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindProtobuf"><b><code>FindProtobuf</code></b></a>:  <br />
    <p>Locate and configure the Google Protocol Buffers library.<br /></p>
<p>The following variables can be set and are optional:<br /></p>
<pre>   PROTOBUF_SRC_ROOT_FOLDER - When compiling with MSVC, if this cache variable is set<br />                              the protobuf-default VS project build locations<br />                              (vsprojects/Debug &amp; vsprojects/Release) will be searched<br />                              for libraries and binaries.<br /></pre>
    <p><br /></p>
<p>Defines the following variables:<br /></p>
<pre>   PROTOBUF_FOUND - Found the Google Protocol Buffers library (libprotobuf &amp; header files)<br />   PROTOBUF_INCLUDE_DIRS - Include directories for Google Protocol Buffers<br />   PROTOBUF_LIBRARIES - The protobuf libraries<br /></pre>
    <p>[New in CMake 2.8.5]<br /></p>
<pre>   PROTOBUF_PROTOC_LIBRARIES - The protoc libraries<br />   PROTOBUF_LITE_LIBRARIES - The protobuf-lite libraries<br /></pre>
    <p><br /></p>
<p>The following cache variables are also available to set or use:<br /></p>
<pre>   PROTOBUF_LIBRARY - The protobuf library<br />   PROTOBUF_PROTOC_LIBRARY   - The protoc library<br />   PROTOBUF_INCLUDE_DIR - The include directory for protocol buffers<br />   PROTOBUF_PROTOC_EXECUTABLE - The protoc compiler<br /></pre>
    <p>[New in CMake 2.8.5]<br /></p>
<pre>   PROTOBUF_LIBRARY_DEBUG - The protobuf library (debug)<br />   PROTOBUF_PROTOC_LIBRARY_DEBUG   - The protoc library (debug)<br />   PROTOBUF_LITE_LIBRARY - The protobuf lite library<br />   PROTOBUF_LITE_LIBRARY_DEBUG - The protobuf lite library (debug)<br /></pre>
    <p><br /></p>
<pre>  ====================================================================<br />  Example:<br /></pre>
    <p><br /></p>
<pre>   find_package(Protobuf REQUIRED)<br />   include_directories(${PROTOBUF_INCLUDE_DIRS})<br /></pre>
    <p><br /></p>
<pre>   include_directories(${CMAKE_CURRENT_BINARY_DIR})<br />   PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS foo.proto)<br />   add_executable(bar bar.cc ${PROTO_SRCS} ${PROTO_HDRS})<br />   target_link_libraries(bar ${PROTOBUF_LIBRARIES})<br /></pre>
    <p><br /></p>
<p>NOTE: You may need to link against pthreads, depending<br /></p>
<pre>       on the platform.<br /></pre>
    <p><br /></p>
<p>NOTE: The PROTOBUF_GENERATE_CPP macro &amp; add_executable() or add_library()<br /></p>
<pre>       calls only work properly within the same directory.<br /></pre>
    <p><br /></p>
<pre>  ====================================================================<br /></pre>
    <p><br /></p>
<p>PROTOBUF_GENERATE_CPP (public function)<br /></p>
<pre>   SRCS = Variable to define with autogenerated<br />          source files<br />   HDRS = Variable to define with autogenerated<br />          header files<br />   ARGN = proto files<br /></pre>
    <p><br /></p>
<pre>  ====================================================================<br /></pre>
    
  </li>
  <li>
    <a name="module:FindPythonInterp"><b><code>FindPythonInterp</code></b></a>: Find python interpreter<br />
    <p>This module finds if Python interpreter is installed and determines where the executables are. This code sets the following variables:<br /></p>
<pre>  PYTHONINTERP_FOUND         - Was the Python executable found<br />  PYTHON_EXECUTABLE          - path to the Python interpreter<br /></pre>
    <p><br /></p>
<pre>  PYTHON_VERSION_STRING      - Python version found e.g. 2.5.2<br />  PYTHON_VERSION_MAJOR       - Python major version found e.g. 2<br />  PYTHON_VERSION_MINOR       - Python minor version found e.g. 5<br />  PYTHON_VERSION_PATCH       - Python patch version found e.g. 2<br /></pre>
    <p><br /></p>
<pre>  Python_ADDITIONAL_VERSIONS - list of additional Python versions to search for<br /></pre>
    
  </li>
  <li>
    <a name="module:FindPythonLibs"><b><code>FindPythonLibs</code></b></a>: Find python libraries<br />
    <p>This module finds if Python is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  PYTHONLIBS_FOUND           - have the Python libs been found<br />  PYTHON_LIBRARIES           - path to the python library<br />  PYTHON_INCLUDE_PATH        - path to where Python.h is found (deprecated)<br />  PYTHON_INCLUDE_DIRS        - path to where Python.h is found<br />  PYTHON_DEBUG_LIBRARIES     - path to the debug library<br />  Python_ADDITIONAL_VERSIONS - list of additional Python versions to search for<br /></pre>
    
  </li>
  <li>
    <a name="module:FindQt"><b><code>FindQt</code></b></a>: Searches for all installed versions of QT.<br />
    <p>This should only be used if your project can work with multiple versions of QT.  If not, you should just directly use FindQt4 or FindQt3. If multiple versions of QT are found on the machine, then The user must set the option DESIRED_QT_VERSION to the version they want to use.  If only one version of qt is found on the machine, then the DESIRED_QT_VERSION is set to that version and the  matching FindQt3 or FindQt4 module is included. Once the user sets DESIRED_QT_VERSION, then the FindQt3 or FindQt4 module is included.<br /></p>
<pre>  QT_REQUIRED if this is set to TRUE then if CMake can <br />              not find QT4 or QT3 an error is raised <br />              and a message is sent to the user.<br /></pre>
    <p><br /></p>
<pre>  DESIRED_QT_VERSION OPTION is created<br />  QT4_INSTALLED is set to TRUE if qt4 is found.<br />  QT3_INSTALLED is set to TRUE if qt3 is found.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindQt3"><b><code>FindQt3</code></b></a>: Locate Qt include paths and libraries<br />
    <p>This module defines:<br /></p>
<pre>  QT_INCLUDE_DIR - where to find qt.h, etc.<br />  QT_LIBRARIES   - the libraries to link against to use Qt.<br />  QT_DEFINITIONS - definitions to use when<br />                   compiling code that uses Qt.<br />  QT_FOUND       - If false, don't try to use Qt.<br /></pre>
    <p><br /></p>
<p>If you need the multithreaded version of Qt, set QT_MT_REQUIRED to TRUE<br /></p>
<p>Also defined, but not for general use are:<br /></p>
<pre>  QT_MOC_EXECUTABLE, where to find the moc tool.<br />  QT_UIC_EXECUTABLE, where to find the uic tool.<br />  QT_QT_LIBRARY, where to find the Qt library.<br />  QT_QTMAIN_LIBRARY, where to find the qtmain<br />   library. This is only required by Qt3 on Windows.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindQt4"><b><code>FindQt4</code></b></a>: Find QT 4<br />
    <p>This module can be used to find Qt4. The most important issue is that the Qt4 qmake is available via the system path. This qmake is then used to detect basically everything else. This module defines a number of key variables and macros.  The variable QT_USE_FILE is set which is the path to a CMake file that can be included  to compile Qt 4 applications and libraries.  It sets up the compilation environment for include directories, preprocessor defines and populates a QT_LIBRARIES variable.<br /></p>
<p>Typical usage could be something like:<br /></p>
<pre>   find_package(Qt4 4.4.3 REQUIRED QtCore QtGui QtXml)<br />   include(${QT_USE_FILE})<br />   add_executable(myexe main.cpp)<br />   target_link_libraries(myexe ${QT_LIBRARIES})<br /></pre>
    <p><br /></p>
<p>The minimum required version can be specified using the standard find_package()-syntax (see example above).  For compatibility with older versions of FindQt4.cmake it is also possible to set the variable QT_MIN_VERSION to the minimum required version of Qt4 before the  find_package(Qt4) command.  If both are used, the version used in the find_package() command overrides the one from QT_MIN_VERSION.<br /></p>
<p>When using the components argument, QT_USE_QT* variables are automatically set for the QT_USE_FILE to pick up.  If one wishes to manually set them, the available ones to set include:<br /></p>
<pre>                    QT_DONT_USE_QTCORE<br />                    QT_DONT_USE_QTGUI<br />                    QT_USE_QT3SUPPORT<br />                    QT_USE_QTASSISTANT<br />                    QT_USE_QAXCONTAINER<br />                    QT_USE_QAXSERVER<br />                    QT_USE_QTDESIGNER<br />                    QT_USE_QTMOTIF<br />                    QT_USE_QTMAIN<br />                    QT_USE_QTMULTIMEDIA<br />                    QT_USE_QTNETWORK<br />                    QT_USE_QTNSPLUGIN<br />                    QT_USE_QTOPENGL<br />                    QT_USE_QTSQL<br />                    QT_USE_QTXML<br />                    QT_USE_QTSVG<br />                    QT_USE_QTTEST<br />                    QT_USE_QTUITOOLS<br />                    QT_USE_QTDBUS<br />                    QT_USE_QTSCRIPT<br />                    QT_USE_QTASSISTANTCLIENT<br />                    QT_USE_QTHELP<br />                    QT_USE_QTWEBKIT<br />                    QT_USE_QTXMLPATTERNS<br />                    QT_USE_PHONON<br />                    QT_USE_QTSCRIPTTOOLS<br />                    QT_USE_QTDECLARATIVE<br /></pre>
    <p><br /></p>
<pre>  QT_USE_IMPORTED_TARGETS <br />        If this variable is set to TRUE, FindQt4.cmake will create imported<br />        library targets for the various Qt libraries and set the <br />        library variables like QT_QTCORE_LIBRARY to point at these imported<br />        targets instead of the library file on disk. This provides much better <br />        handling of the release and debug versions of the Qt libraries and is <br />       also always backwards compatible, except for the case that dependencies<br />       of libraries are exported, these will then also list the names of the <br />       imported targets as dependency and not the file location on disk. This<br />       is much more flexible, but requires that FindQt4.cmake is executed before<br />       such an exported dependency file is processed.<br /></pre>
    <p><br /></p>
<p>There are also some files that need processing by some Qt tools such as moc and uic.  Listed below are macros that may be used to process those files.<br /></p>
<pre>  <br />  macro QT4_WRAP_CPP(outfiles inputfile ... OPTIONS ...)<br />        create moc code from a list of files containing Qt class with<br />        the Q_OBJECT declaration.  Per-direcotry preprocessor definitions <br />        are also added.  Options may be given to moc, such as those found<br />        when executing "moc -help".  <br /></pre>
    <p><br /></p>
<pre>  macro QT4_WRAP_UI(outfiles inputfile ... OPTIONS ...)<br />        create code from a list of Qt designer ui files.<br />        Options may be given to uic, such as those found<br />        when executing "uic -help"<br /></pre>
    <p><br /></p>
<pre>  macro QT4_ADD_RESOURCES(outfiles inputfile ... OPTIONS ...)<br />        create code from a list of Qt resource files.<br />        Options may be given to rcc, such as those found<br />        when executing "rcc -help"<br /></pre>
    <p><br /></p>
<pre>  macro QT4_GENERATE_MOC(inputfile outputfile )<br />        creates a rule to run moc on infile and create outfile.<br />        Use this if for some reason QT4_WRAP_CPP() isn't appropriate, e.g.<br />        because you need a custom filename for the moc file or something similar.<br /></pre>
    <p><br /></p>
<pre>  macro QT4_AUTOMOC(sourcefile1 sourcefile2 ... )<br />        This macro is still experimental.<br />        It can be used to have moc automatically handled.<br />        So if you have the files foo.h and foo.cpp, and in foo.h a <br />        a class uses the Q_OBJECT macro, moc has to run on it. If you don't<br />        want to use QT4_WRAP_CPP() (which is reliable and mature), you can insert<br />        #include "foo.moc"<br />        in foo.cpp and then give foo.cpp as argument to QT4_AUTOMOC(). This will the<br />        scan all listed files at cmake-time for such included moc files and if it finds<br />        them cause a rule to be generated to run moc at build time on the <br />        accompanying header file foo.h.<br />        If a source file has the SKIP_AUTOMOC property set it will be ignored by this macro.<br /></pre>
    <p><br /></p>
<pre>  macro QT4_ADD_DBUS_INTERFACE(outfiles interface basename)<br />        create a the interface header and implementation files with the <br />        given basename from the given interface xml file and add it to <br />        the list of sources<br /></pre>
    <p><br /></p>
<pre>  macro QT4_ADD_DBUS_INTERFACES(outfiles inputfile ... )<br />        create the interface header and implementation files <br />        for all listed interface xml files<br />        the name will be automatically determined from the name of the xml file<br /></pre>
    <p><br /></p>
<pre>  macro QT4_ADD_DBUS_ADAPTOR(outfiles xmlfile parentheader parentclassname [basename] [classname])<br />        create a dbus adaptor (header and implementation file) from the xml file<br />        describing the interface, and add it to the list of sources. The adaptor<br />        forwards the calls to a parent class, defined in parentheader and named<br />        parentclassname. The name of the generated files will be<br />        &lt;basename&gt;adaptor.{cpp,h} where basename defaults to the basename of the xml file.<br />        If &lt;classname&gt; is provided, then it will be used as the classname of the<br />        adaptor itself.<br /></pre>
    <p><br /></p>
<pre>  macro QT4_GENERATE_DBUS_INTERFACE( header [interfacename] OPTIONS ...)<br />        generate the xml interface file from the given header.<br />        If the optional argument interfacename is omitted, the name of the <br />        interface file is constructed from the basename of the header with<br />        the suffix .xml appended.<br />        Options may be given to qdbuscpp2xml, such as those found when executing "qdbuscpp2xml --help"<br /></pre>
    <p><br /></p>
<pre>  macro QT4_CREATE_TRANSLATION( qm_files directories ... sources ... <br />                                ts_files ... OPTIONS ...)<br />        out: qm_files<br />        in:  directories sources ts_files<br />        options: flags to pass to lupdate, such as -extensions to specify<br />        extensions for a directory scan.<br />        generates commands to create .ts (vie lupdate) and .qm<br />        (via lrelease) - files from directories and/or sources. The ts files are <br />        created and/or updated in the source tree (unless given with full paths).<br />        The qm files are generated in the build tree.<br />        Updating the translations can be done by adding the qm_files<br />        to the source list of your library/executable, so they are<br />        always updated, or by adding a custom target to control when<br />        they get updated/generated.<br /></pre>
    <p><br /></p>
<pre>  macro QT4_ADD_TRANSLATION( qm_files ts_files ... )<br />        out: qm_files<br />        in:  ts_files<br />        generates commands to create .qm from .ts - files. The generated<br />        filenames can be found in qm_files. The ts_files<br />        must exists and are not updated in any way.<br /></pre>
    <p><br /></p>
<p><br /></p>
<pre>  Below is a detailed list of variables that FindQt4.cmake sets.<br />  QT_FOUND         If false, don't try to use Qt.<br />  QT4_FOUND        If false, don't try to use Qt 4.<br /></pre>
    <p><br /></p>
<pre>  QT_VERSION_MAJOR The major version of Qt found.<br />  QT_VERSION_MINOR The minor version of Qt found.<br />  QT_VERSION_PATCH The patch version of Qt found.<br /></pre>
    <p><br /></p>
<pre>  QT_EDITION               Set to the edition of Qt (i.e. DesktopLight)<br />  QT_EDITION_DESKTOPLIGHT  True if QT_EDITION == DesktopLight<br />  QT_QTCORE_FOUND          True if QtCore was found.<br />  QT_QTGUI_FOUND           True if QtGui was found.<br />  QT_QT3SUPPORT_FOUND      True if Qt3Support was found.<br />  QT_QTASSISTANT_FOUND     True if QtAssistant was found.<br />  QT_QTASSISTANTCLIENT_FOUND  True if QtAssistantClient was found.<br />  QT_QAXCONTAINER_FOUND    True if QAxContainer was found (Windows only).<br />  QT_QAXSERVER_FOUND       True if QAxServer was found (Windows only).<br />  QT_QTDBUS_FOUND          True if QtDBus was found.<br />  QT_QTDESIGNER_FOUND      True if QtDesigner was found.<br />  QT_QTDESIGNERCOMPONENTS  True if QtDesignerComponents was found.<br />  QT_QTHELP_FOUND          True if QtHelp was found.<br />  QT_QTMOTIF_FOUND         True if QtMotif was found.<br />  QT_QTMULTIMEDIA_FOUND    True if QtMultimedia was found (since Qt 4.6.0).<br />  QT_QTNETWORK_FOUND       True if QtNetwork was found.<br />  QT_QTNSPLUGIN_FOUND      True if QtNsPlugin was found.<br />  QT_QTOPENGL_FOUND        True if QtOpenGL was found.<br />  QT_QTSQL_FOUND           True if QtSql was found.<br />  QT_QTSVG_FOUND           True if QtSvg was found.<br />  QT_QTSCRIPT_FOUND        True if QtScript was found.<br />  QT_QTSCRIPTTOOLS_FOUND   True if QtScriptTools was found.<br />  QT_QTTEST_FOUND          True if QtTest was found.<br />  QT_QTUITOOLS_FOUND       True if QtUiTools was found.<br />  QT_QTWEBKIT_FOUND        True if QtWebKit was found.<br />  QT_QTXML_FOUND           True if QtXml was found.<br />  QT_QTXMLPATTERNS_FOUND   True if QtXmlPatterns was found.<br />  QT_PHONON_FOUND          True if phonon was found.<br />  QT_QTDECLARATIVE_FOUND   True if QtDeclarative was found.<br /></pre>
    <p><br /></p>
<pre>  QT_MAC_USE_COCOA    For Mac OS X, its whether Cocoa or Carbon is used.<br />                      In general, this should not be used, but its useful<br />                      when having platform specific code.<br /></pre>
    <p><br /></p>
<pre>  QT_DEFINITIONS   Definitions to use when compiling code that uses Qt.<br />                   You do not need to use this if you include QT_USE_FILE.<br />                   The QT_USE_FILE will also define QT_DEBUG and QT_NO_DEBUG<br />                   to fit your current build type.  Those are not contained<br />                   in QT_DEFINITIONS.<br />                  <br />  QT_INCLUDES      List of paths to all include directories of <br />                   Qt4 QT_INCLUDE_DIR and QT_QTCORE_INCLUDE_DIR are<br />                   always in this variable even if NOTFOUND,<br />                   all other INCLUDE_DIRS are<br />                   only added if they are found.<br />                   You do not need to use this if you include QT_USE_FILE.<br />   <br /></pre>
    <p><br /></p>
<pre>  Include directories for the Qt modules are listed here.<br />  You do not need to use these variables if you include QT_USE_FILE.<br /></pre>
    <p><br /></p>
<pre>  QT_INCLUDE_DIR              Path to "include" of Qt4<br />  QT_QT3SUPPORT_INCLUDE_DIR   Path to "include/Qt3Support" <br />  QT_QTASSISTANT_INCLUDE_DIR  Path to "include/QtAssistant" <br />  QT_QTASSISTANTCLIENT_INCLUDE_DIR       Path to "include/QtAssistant"<br />  QT_QAXCONTAINER_INCLUDE_DIR Path to "include/ActiveQt" (Windows only)<br />  QT_QAXSERVER_INCLUDE_DIR    Path to "include/ActiveQt" (Windows only)<br />  QT_QTCORE_INCLUDE_DIR       Path to "include/QtCore"         <br />  QT_QTDBUS_INCLUDE_DIR       Path to "include/QtDBus" <br />  QT_QTDESIGNER_INCLUDE_DIR   Path to "include/QtDesigner" <br />  QT_QTDESIGNERCOMPONENTS_INCLUDE_DIR   Path to "include/QtDesigner"<br />  QT_QTGUI_INCLUDE_DIR        Path to "include/QtGui" <br />  QT_QTHELP_INCLUDE_DIR       Path to "include/QtHelp"<br />  QT_QTMOTIF_INCLUDE_DIR      Path to "include/QtMotif" <br />  QT_QTMULTIMEDIA_INCLUDE_DIR Path to "include/QtMultimedia" <br />  QT_QTNETWORK_INCLUDE_DIR    Path to "include/QtNetwork" <br />  QT_QTNSPLUGIN_INCLUDE_DIR   Path to "include/QtNsPlugin" <br />  QT_QTOPENGL_INCLUDE_DIR     Path to "include/QtOpenGL" <br />  QT_QTSCRIPT_INCLUDE_DIR     Path to "include/QtScript"<br />  QT_QTSQL_INCLUDE_DIR        Path to "include/QtSql" <br />  QT_QTSVG_INCLUDE_DIR        Path to "include/QtSvg"<br />  QT_QTTEST_INCLUDE_DIR       Path to "include/QtTest"<br />  QT_QTWEBKIT_INCLUDE_DIR     Path to "include/QtWebKit"<br />  QT_QTXML_INCLUDE_DIR        Path to "include/QtXml" <br />  QT_QTXMLPATTERNS_INCLUDE_DIR  Path to "include/QtXmlPatterns"<br />  QT_PHONON_INCLUDE_DIR       Path to "include/phonon"<br />  QT_QTSCRIPTTOOLS_INCLUDE_DIR       Path to "include/QtScriptTools"<br />  QT_QTDECLARATIVE_INCLUDE_DIR       Path to "include/QtDeclarative"<br /></pre>
    <p><br /></p>
<pre>  QT_BINARY_DIR               Path to "bin" of Qt4<br />  QT_LIBRARY_DIR              Path to "lib" of Qt4<br />  QT_PLUGINS_DIR              Path to "plugins" for Qt4<br />  QT_TRANSLATIONS_DIR         Path to "translations" of Qt4<br />  QT_IMPORTS_DIR              Path to "imports" of Qt4<br />  QT_DOC_DIR                  Path to "doc" of Qt4<br />  QT_MKSPECS_DIR              Path to "mkspecs" of Qt4<br /></pre>
    <p><br /></p>
<p><br /></p>
<p>The Qt toolkit may contain both debug and release libraries. In that case, the following library variables will contain both. You do not need to use these variables if you include QT_USE_FILE, and use QT_LIBRARIES.<br /></p>
<pre>  QT_QT3SUPPORT_LIBRARY            The Qt3Support library<br />  QT_QTASSISTANT_LIBRARY           The QtAssistant library<br />  QT_QTASSISTANTCLIENT_LIBRARY     The QtAssistantClient library<br />  QT_QAXCONTAINER_LIBRARY           The QAxContainer library (Windows only)<br />  QT_QAXSERVER_LIBRARY                The QAxServer library (Windows only)<br />  QT_QTCORE_LIBRARY                The QtCore library<br />  QT_QTDBUS_LIBRARY                The QtDBus library<br />  QT_QTDESIGNER_LIBRARY            The QtDesigner library<br />  QT_QTDESIGNERCOMPONENTS_LIBRARY  The QtDesignerComponents library<br />  QT_QTGUI_LIBRARY                 The QtGui library<br />  QT_QTHELP_LIBRARY                The QtHelp library<br />  QT_QTMOTIF_LIBRARY               The QtMotif library<br />  QT_QTMULTIMEDIA_LIBRARY          The QtMultimedia library<br />  QT_QTNETWORK_LIBRARY             The QtNetwork library<br />  QT_QTNSPLUGIN_LIBRARY            The QtNsPLugin library<br />  QT_QTOPENGL_LIBRARY              The QtOpenGL library<br />  QT_QTSCRIPT_LIBRARY              The QtScript library<br />  QT_QTSQL_LIBRARY                 The QtSql library<br />  QT_QTSVG_LIBRARY                 The QtSvg library<br />  QT_QTTEST_LIBRARY                The QtTest library<br />  QT_QTUITOOLS_LIBRARY             The QtUiTools library<br />  QT_QTWEBKIT_LIBRARY              The QtWebKit library<br />  QT_QTXML_LIBRARY                 The QtXml library<br />  QT_QTXMLPATTERNS_LIBRARY         The QtXmlPatterns library<br />  QT_QTMAIN_LIBRARY                The qtmain library for Windows<br />  QT_PHONON_LIBRARY                The phonon library<br />  QT_QTSCRIPTTOOLS_LIBRARY         The QtScriptTools library<br />  <br /></pre>
    <p>The QtDeclarative library:             QT_QTDECLARATIVE_LIBRARY<br /></p>
<p>also defined, but NOT for general use are<br /></p>
<pre>  QT_MOC_EXECUTABLE                   Where to find the moc tool.<br />  QT_UIC_EXECUTABLE                   Where to find the uic tool.<br />  QT_UIC3_EXECUTABLE                  Where to find the uic3 tool.<br />  QT_RCC_EXECUTABLE                   Where to find the rcc tool<br />  QT_DBUSCPP2XML_EXECUTABLE           Where to find the qdbuscpp2xml tool.<br />  QT_DBUSXML2CPP_EXECUTABLE           Where to find the qdbusxml2cpp tool.<br />  QT_LUPDATE_EXECUTABLE               Where to find the lupdate tool.<br />  QT_LRELEASE_EXECUTABLE              Where to find the lrelease tool.<br />  QT_QCOLLECTIONGENERATOR_EXECUTABLE  Where to find the qcollectiongenerator tool.<br />  QT_DESIGNER_EXECUTABLE              Where to find the Qt designer tool.<br />  QT_LINGUIST_EXECUTABLE              Where to find the Qt linguist tool.<br />  <br /></pre>
    <p><br /></p>
<p>These are around for backwards compatibility  they will be set<br /></p>
<pre>  QT_WRAP_CPP  Set true if QT_MOC_EXECUTABLE is found<br />  QT_WRAP_UI   Set true if QT_UIC_EXECUTABLE is found<br />  <br /></pre>
    <p>These variables do _NOT_ have any effect anymore (compared to FindQt.cmake)<br /></p>
<pre>  QT_MT_REQUIRED         Qt4 is now always multithreaded<br />  <br /></pre>
    <p>These variables are set to "" Because Qt structure changed  (They make no sense in Qt4)<br /></p>
<pre>  QT_QT_LIBRARY        Qt-Library is now split<br /></pre>
    
  </li>
  <li>
    <a name="module:FindQuickTime"><b><code>FindQuickTime</code></b></a>:  <br />
    <p>Locate QuickTime This module defines QUICKTIME_LIBRARY QUICKTIME_FOUND, if false, do not try to link to gdal  QUICKTIME_INCLUDE_DIR, where to find the headers<br /></p>
<p>$QUICKTIME_DIR is an environment variable that would correspond to the ./configure --prefix=$QUICKTIME_DIR<br /></p>
<p>Created by Eric Wing. </p>

  </li>
  <li>
    <a name="module:FindRTI"><b><code>FindRTI</code></b></a>: Try to find M&amp;S HLA RTI libraries<br />
    <p>This module finds if any HLA RTI is installed and locates the standard RTI include files and libraries.<br /></p>
<p>RTI is a simulation infrastructure standardized by IEEE and SISO. It has a well defined C++ API that assures that simulation applications are independent on a particular RTI implementation.<br /></p>
<pre>  <a href="http://en.wikipedia.org/wiki/Run-Time_Infrastructure_">http://en.wikipedia.org/wiki/Run-Time_Infrastructure_</a>(simulation)<br /></pre>
    <p><br /></p>
<p>This code sets the following variables:<br /></p>
<pre>  RTI_INCLUDE_DIR = the directory where RTI includes file are found<br />  RTI_LIBRARIES = The libraries to link against to use RTI<br />  RTI_DEFINITIONS = -DRTI_USES_STD_FSTREAM<br />  RTI_FOUND = Set to FALSE if any HLA RTI was not found<br /></pre>
    <p><br /></p>
<p>Report problems to &lt;certi-devel@nongnu.org&gt;</p>

  </li>
  <li>
    <a name="module:FindRuby"><b><code>FindRuby</code></b></a>: Find Ruby<br />
    <p>This module finds if Ruby is installed and determines where the include files and libraries are. Ruby 1.8 and 1.9 are supported.<br /></p>
<p>The minimum required version of Ruby can be specified using the standard syntax, e.g. FIND_PACKAGE(Ruby 1.8)<br /></p>
<p>It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  RUBY_EXECUTABLE   = full path to the ruby binary<br />  RUBY_INCLUDE_DIRS = include dirs to be used when using the ruby library<br />  RUBY_LIBRARY      = full path to the ruby library<br />  RUBY_VERSION      = the version of ruby which was found, e.g. "1.8.7"<br />  RUBY_FOUND        = set to true if ruby ws found successfully<br /></pre>
    <p><br /></p>
<pre>  RUBY_INCLUDE_PATH = same as RUBY_INCLUDE_DIRS, only provided for compatibility reasons, don't use it<br /></pre>
    
  </li>
  <li>
    <a name="module:FindSDL"><b><code>FindSDL</code></b></a>:  <br />
    <p>Locate SDL library This module defines SDL_LIBRARY, the name of the library to link against SDL_FOUND, if false, do not try to link to SDL SDL_INCLUDE_DIR, where to find SDL.h<br /></p>
<p>This module responds to the the flag: SDL_BUILDING_LIBRARY If this is defined, then no SDL_main will be linked in because  only applications need main(). Otherwise, it is assumed you are building an application and this module will attempt to locate and set the the proper link flags as part of the returned SDL_LIBRARY variable.<br /></p>
<p>Don't forget to include SDLmain.h and SDLmain.m your project for the  OS X framework based version. (Other versions link to -lSDLmain which this module will try to find on your behalf.) Also for OS X, this  module will automatically add the -framework Cocoa on your behalf.<br /></p>
<p><br /></p>
<p>Additional Note: If you see an empty SDL_LIBRARY_TEMP in your configuration and no SDL_LIBRARY, it means CMake did not find your SDL library  (SDL.dll, libsdl.so, SDL.framework, etc).  Set SDL_LIBRARY_TEMP to point to your SDL library, and configure again.  Similarly, if you see an empty SDLMAIN_LIBRARY, you should set this value as appropriate. These values are used to generate the final SDL_LIBRARY variable, but when these values are unset, SDL_LIBRARY does not get created.<br /></p>
<p><br /></p>
<p>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL. l.e.galup  9-20-02<br /></p>
<p>Modified by Eric Wing.  Added code to assist with automated building by using environmental variables and providing a more controlled/consistent search behavior. Added new modifications to recognize OS X frameworks and  additional Unix paths (FreeBSD, etc).  Also corrected the header search path to follow "proper" SDL guidelines. Added a search for SDLmain which is needed by some platforms. Added a search for threads which is needed by some platforms. Added needed compile switches for MinGW.<br /></p>
<p>On OSX, this will prefer the Framework version (if found) over others. People will have to manually change the cache values of  SDL_LIBRARY to override this selection or set the CMake environment CMAKE_INCLUDE_PATH to modify the search paths.<br /></p>
<p>Note that the header path has changed from SDL/SDL.h to just SDL.h This needed to change because "proper" SDL convention is #include "SDL.h", not &lt;SDL/SDL.h&gt;. This is done for portability reasons because not all systems place things in SDL/ (see FreeBSD).</p>

  </li>
  <li>
    <a name="module:FindSDL_image"><b><code>FindSDL_image</code></b></a>:  <br />
    <p>Locate SDL_image library This module defines SDLIMAGE_LIBRARY, the name of the library to link against SDLIMAGE_FOUND, if false, do not try to link to SDL SDLIMAGE_INCLUDE_DIR, where to find SDL/SDL.h<br /></p>
<p>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.<br /></p>
<p>Created by Eric Wing. This was influenced by the FindSDL.cmake  module, but with modifications to recognize OS X frameworks and  additional Unix paths (FreeBSD, etc).</p>

  </li>
  <li>
    <a name="module:FindSDL_mixer"><b><code>FindSDL_mixer</code></b></a>:  <br />
    <p>Locate SDL_mixer library This module defines SDLMIXER_LIBRARY, the name of the library to link against SDLMIXER_FOUND, if false, do not try to link to SDL SDLMIXER_INCLUDE_DIR, where to find SDL/SDL.h<br /></p>
<p>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.<br /></p>
<p>Created by Eric Wing. This was influenced by the FindSDL.cmake  module, but with modifications to recognize OS X frameworks and  additional Unix paths (FreeBSD, etc).</p>

  </li>
  <li>
    <a name="module:FindSDL_net"><b><code>FindSDL_net</code></b></a>:  <br />
    <p>Locate SDL_net library This module defines SDLNET_LIBRARY, the name of the library to link against SDLNET_FOUND, if false, do not try to link against SDLNET_INCLUDE_DIR, where to find the headers<br /></p>
<p>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.<br /></p>
<p>Created by Eric Wing. This was influenced by the FindSDL.cmake  module, but with modifications to recognize OS X frameworks and  additional Unix paths (FreeBSD, etc).</p>

  </li>
  <li>
    <a name="module:FindSDL_sound"><b><code>FindSDL_sound</code></b></a>:  <br />
    <p>Locates the SDL_sound library</p>

  </li>
  <li>
    <a name="module:FindSDL_ttf"><b><code>FindSDL_ttf</code></b></a>:  <br />
    <p>Locate SDL_ttf library This module defines SDLTTF_LIBRARY, the name of the library to link against SDLTTF_FOUND, if false, do not try to link to SDL SDLTTF_INCLUDE_DIR, where to find SDL/SDL.h<br /></p>
<p>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.<br /></p>
<p>Created by Eric Wing. This was influenced by the FindSDL.cmake  module, but with modifications to recognize OS X frameworks and  additional Unix paths (FreeBSD, etc).</p>

  </li>
  <li>
    <a name="module:FindSWIG"><b><code>FindSWIG</code></b></a>: Find SWIG<br />
    <p>This module finds an installed SWIG.  It sets the following variables:<br /></p>
<pre>  SWIG_FOUND - set to true if SWIG is found<br />  SWIG_DIR - the directory where swig is installed<br />  SWIG_EXECUTABLE - the path to the swig executable<br />  SWIG_VERSION   - the version number of the swig executable<br /></pre>
    <p><br /></p>
<p>The minimum required version of SWIG can be specified using the standard syntax, e.g. FIND_PACKAGE(SWIG 1.1)<br /></p>
<p>All information is collected from the SWIG_EXECUTABLE so the version to be found can be changed from the command line by means of setting SWIG_EXECUTABLE<br /></p>

  </li>
  <li>
    <a name="module:FindSelfPackers"><b><code>FindSelfPackers</code></b></a>: Find upx<br />
    <p>This module looks for some executable packers (i.e. softwares that compress executables or shared libs into on-the-fly self-extracting executables or shared libs. Examples:<br /></p>
<pre>  UPX: <a href="http://wildsau.idv.uni-linz.ac.at/mfx/upx.html">http://wildsau.idv.uni-linz.ac.at/mfx/upx.html</a><br /></pre>
    
  </li>
  <li>
    <a name="module:FindSquish"><b><code>FindSquish</code></b></a>: -- Typical Use<br />
    <p><br /></p>
<p>This module can be used to find Squish (currently support is aimed at version 3).<br /></p>
<pre>  SQUISH_FOUND                    If false, don't try to use Squish<br /></pre>
    <p><br /></p>
<pre>  SQUISH_INSTALL_DIR              The Squish installation directory (containing bin, lib, etc)<br />  SQUISH_SERVER_EXECUTABLE        The squishserver executable<br />  SQUISH_CLIENT_EXECUTABLE        The squishrunner executable<br /></pre>
    <p><br /></p>
<pre>  SQUISH_INSTALL_DIR_FOUND        Was the install directory found?<br />  SQUISH_SERVER_EXECUTABLE_FOUND  Was the server executable found?<br />  SQUISH_CLIENT_EXECUTABLE_FOUND  Was the client executable found?<br /></pre>
    <p><br /></p>
<p>macro SQUISH_ADD_TEST(testName applicationUnderTest testSuite testCase)<br /></p>
<pre>  ENABLE_TESTING()<br />  FIND_PACKAGE(Squish)<br />  IF (SQUISH_FOUND)<br />    SQUISH_ADD_TEST(myTestName myApplication testSuiteName testCaseName)<br />  ENDIF (SQUISH_FOUND)<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindSubversion"><b><code>FindSubversion</code></b></a>: Extract information from a subversion working copy<br />
    <p>The module defines the following variables:<br /></p>
<pre>  Subversion_SVN_EXECUTABLE - path to svn command line client<br />  Subversion_VERSION_SVN - version of svn command line client<br />  Subversion_FOUND - true if the command line client was found<br />  SUBVERSION_FOUND - same as Subversion_FOUND, set for compatiblity reasons<br /></pre>
    <p><br /></p>
<p>The minimum required version of Subversion can be specified using the standard syntax, e.g. FIND_PACKAGE(Subversion 1.4)<br /></p>
<p>If the command line client executable is found two macros are defined:<br /></p>
<pre>  Subversion_WC_INFO(&lt;dir&gt; &lt;var-prefix&gt;)<br />  Subversion_WC_LOG(&lt;dir&gt; &lt;var-prefix&gt;)<br /></pre>
    <p>Subversion_WC_INFO extracts information of a subversion working copy at a given location. This macro defines the following variables:<br /></p>
<pre>  &lt;var-prefix&gt;_WC_URL - url of the repository (at &lt;dir&gt;)<br />  &lt;var-prefix&gt;_WC_ROOT - root url of the repository<br />  &lt;var-prefix&gt;_WC_REVISION - current revision<br />  &lt;var-prefix&gt;_WC_LAST_CHANGED_AUTHOR - author of last commit<br />  &lt;var-prefix&gt;_WC_LAST_CHANGED_DATE - date of last commit<br />  &lt;var-prefix&gt;_WC_LAST_CHANGED_REV - revision of last commit<br />  &lt;var-prefix&gt;_WC_INFO - output of command `svn info &lt;dir&gt;'<br /></pre>
    <p>Subversion_WC_LOG retrieves the log message of the base revision of a subversion working copy at a given location. This macro defines the variable:<br /></p>
<pre>  &lt;var-prefix&gt;_LAST_CHANGED_LOG - last log of base revision<br /></pre>
    <p>Example usage:<br /></p>
<pre>  FIND_PACKAGE(Subversion)<br />  IF(SUBVERSION_FOUND)<br />    Subversion_WC_INFO(${PROJECT_SOURCE_DIR} Project)<br />    MESSAGE("Current revision is ${Project_WC_REVISION}")<br />    Subversion_WC_LOG(${PROJECT_SOURCE_DIR} Project)<br />    MESSAGE("Last changed log is ${Project_LAST_CHANGED_LOG}")<br />  ENDIF(SUBVERSION_FOUND)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindTCL"><b><code>FindTCL</code></b></a>: TK_INTERNAL_PATH was removed.<br />
    <p>This module finds if Tcl is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  TCL_FOUND              = Tcl was found<br />  TK_FOUND               = Tk was found<br />  TCLTK_FOUND            = Tcl and Tk were found<br />  TCL_LIBRARY            = path to Tcl library (tcl tcl80)<br />  TCL_INCLUDE_PATH       = path to where tcl.h can be found<br />  TCL_TCLSH              = path to tclsh binary (tcl tcl80)<br />  TK_LIBRARY             = path to Tk library (tk tk80 etc)<br />  TK_INCLUDE_PATH        = path to where tk.h can be found<br />  TK_WISH                = full path to the wish executable<br /></pre>
    <p><br /></p>
<p>In an effort to remove some clutter and clear up some issues for people who are not necessarily Tcl/Tk gurus/developpers, some variables were moved or removed. Changes compared to CMake 2.4 are:<br /></p>
<pre>   =&gt; they were only useful for people writing Tcl/Tk extensions.<br />   =&gt; these libs are not packaged by default with Tcl/Tk distributions. <br />      Even when Tcl/Tk is built from source, several flavors of debug libs<br />      are created and there is no real reason to pick a single one<br />      specifically (say, amongst tcl84g, tcl84gs, or tcl84sgx). <br />      Let's leave that choice to the user by allowing him to assign <br />      TCL_LIBRARY to any Tcl library, debug or not.<br />   =&gt; this ended up being only a Win32 variable, and there is a lot of<br />      confusion regarding the location of this file in an installed Tcl/Tk<br />      tree anyway (see 8.5 for example). If you need the internal path at<br />      this point it is safer you ask directly where the *source* tree is<br />      and dig from there.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindTIFF"><b><code>FindTIFF</code></b></a>: Find TIFF library<br />
    <p>Find the native TIFF includes and library This module defines<br /></p>
<pre>  TIFF_INCLUDE_DIR, where to find tiff.h, etc.<br />  TIFF_LIBRARIES, libraries to link against to use TIFF.<br />  TIFF_FOUND, If false, do not try to use TIFF.<br /></pre>
    <p>also defined, but not for general use are<br /></p>
<pre>  TIFF_LIBRARY, where to find the TIFF library.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindTclStub"><b><code>FindTclStub</code></b></a>: TCL_STUB_LIBRARY_DEBUG and TK_STUB_LIBRARY_DEBUG were removed.<br />
    <p>This module finds Tcl stub libraries. It first finds Tcl include files and libraries by calling FindTCL.cmake. How to Use the Tcl Stubs Library:<br /></p>
<pre>   <a href="http://tcl.activestate.com/doc/howto/stubs.html">http://tcl.activestate.com/doc/howto/stubs.html</a><br /></pre>
    <p>Using Stub Libraries:<br /></p>
<pre>   <a href="http://safari.oreilly.com/0130385603/ch48lev1sec3">http://safari.oreilly.com/0130385603/ch48lev1sec3</a><br /></pre>
    <p>This code sets the following variables:<br /></p>
<pre>  TCL_STUB_LIBRARY       = path to Tcl stub library<br />  TK_STUB_LIBRARY        = path to Tk stub library<br />  TTK_STUB_LIBRARY       = path to ttk stub library<br /></pre>
    <p><br /></p>
<p>In an effort to remove some clutter and clear up some issues for people who are not necessarily Tcl/Tk gurus/developpers, some variables were moved or removed. Changes compared to CMake 2.4 are:<br /></p>
<pre>   =&gt; these libs are not packaged by default with Tcl/Tk distributions. <br />      Even when Tcl/Tk is built from source, several flavors of debug libs<br />      are created and there is no real reason to pick a single one<br />      specifically (say, amongst tclstub84g, tclstub84gs, or tclstub84sgx). <br />      Let's leave that choice to the user by allowing him to assign <br />      TCL_STUB_LIBRARY to any Tcl library, debug or not.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindTclsh"><b><code>FindTclsh</code></b></a>: Find tclsh<br />
    <p>This module finds if TCL is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  TCLSH_FOUND = TRUE if tclsh has been found<br />  TCL_TCLSH = the path to the tclsh executable<br /></pre>
    <p>In cygwin, look for the cygwin version first.  Don't look for it later to avoid finding the cygwin version on a Win32 build.</p>

  </li>
  <li>
    <a name="module:FindThreads"><b><code>FindThreads</code></b></a>: This module determines the thread library of the system.<br />
    <p>The following variables are set<br /></p>
<pre>  CMAKE_THREAD_LIBS_INIT     - the thread library<br />  CMAKE_USE_SPROC_INIT       - are we using sproc?<br />  CMAKE_USE_WIN32_THREADS_INIT - using WIN32 threads?<br />  CMAKE_USE_PTHREADS_INIT    - are we using pthreads<br />  CMAKE_HP_PTHREADS_INIT     - are we using hp pthreads<br /></pre>
    <p>For systems with multiple thread libraries, caller can set<br /></p>
<pre>  CMAKE_THREAD_PREFER_PTHREAD<br /></pre>
    
  </li>
  <li>
    <a name="module:FindUnixCommands"><b><code>FindUnixCommands</code></b></a>: Find unix commands from cygwin<br />
    <p>This module looks for some usual Unix commands.<br /></p>

  </li>
  <li>
    <a name="module:FindVTK"><b><code>FindVTK</code></b></a>: Find a VTK installation or build tree.<br />
    <p>The following variables are set if VTK is found.  If VTK is not found, VTK_FOUND is set to false.<br /></p>
<pre>  VTK_FOUND         - Set to true when VTK is found.<br />  VTK_USE_FILE      - CMake file to use VTK.<br />  VTK_MAJOR_VERSION - The VTK major version number.<br />  VTK_MINOR_VERSION - The VTK minor version number <br />                       (odd non-release).<br />  VTK_BUILD_VERSION - The VTK patch level <br />                       (meaningless for odd minor).<br />  VTK_INCLUDE_DIRS  - Include directories for VTK<br />  VTK_LIBRARY_DIRS  - Link directories for VTK libraries<br />  VTK_KITS          - List of VTK kits, in CAPS <br />                      (COMMON,IO,) etc.<br />  VTK_LANGUAGES     - List of wrapped languages, in CAPS<br />                      (TCL, PYHTON,) etc.<br /></pre>
    <p>The following cache entries must be set by the user to locate VTK:<br /></p>
<pre>  VTK_DIR  - The directory containing VTKConfig.cmake.  <br />             This is either the root of the build tree,<br />             or the lib/vtk directory.  This is the <br />             only cache entry.<br /></pre>
    <p>The following variables are set for backward compatibility and should not be used in new code:<br /></p>
<pre>  USE_VTK_FILE - The full path to the UseVTK.cmake file.<br />                 This is provided for backward <br />                 compatibility.  Use VTK_USE_FILE <br />                 instead.<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:FindWget"><b><code>FindWget</code></b></a>: Find wget<br />
    <p>This module looks for wget. This module defines the  following values:<br /></p>
<pre>  WGET_EXECUTABLE: the full path to the wget tool.<br />  WGET_FOUND: True if wget has been found.<br /></pre>
    
  </li>
  <li>
    <a name="module:FindWish"><b><code>FindWish</code></b></a>: Find wish installation<br />
    <p>This module finds if TCL is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:<br /></p>
<pre>  TK_WISH = the path to the wish executable<br /></pre>
    <p><br /></p>
<p>if UNIX is defined, then it will look for the cygwin version first</p>

  </li>
  <li>
    <a name="module:FindX11"><b><code>FindX11</code></b></a>: Find X11 installation<br />
    <p>Try to find X11 on UNIX systems. The following values are defined<br /></p>
<pre>  X11_FOUND        - True if X11 is available<br />  X11_INCLUDE_DIR  - include directories to use X11<br />  X11_LIBRARIES    - link against these to use X11<br /></pre>
    <p><br /></p>
<p>and also the following more fine grained variables: Include paths: X11_ICE_INCLUDE_PATH,          X11_ICE_LIB,        X11_ICE_FOUND<br /></p>
<pre>                X11_SM_INCLUDE_PATH,           X11_SM_LIB,         X11_SM_FOUND<br />                X11_X11_INCLUDE_PATH,          X11_X11_LIB<br />                X11_Xaccessrules_INCLUDE_PATH,                     X11_Xaccess_FOUND<br />                X11_Xaccessstr_INCLUDE_PATH,                       X11_Xaccess_FOUND<br />                X11_Xau_INCLUDE_PATH,          X11_Xau_LIB,        X11_Xau_FOUND<br />                X11_Xcomposite_INCLUDE_PATH,   X11_Xcomposite_LIB, X11_Xcomposite_FOUND<br />                X11_Xcursor_INCLUDE_PATH,      X11_Xcursor_LIB,    X11_Xcursor_FOUND<br />                X11_Xdamage_INCLUDE_PATH,      X11_Xdamage_LIB,    X11_Xdamage_FOUND<br />                X11_Xdmcp_INCLUDE_PATH,        X11_Xdmcp_LIB,      X11_Xdmcp_FOUND<br />                                               X11_Xext_LIB,       X11_Xext_FOUND<br />                X11_dpms_INCLUDE_PATH,         (in X11_Xext_LIB),  X11_dpms_FOUND<br />                X11_XShm_INCLUDE_PATH,         (in X11_Xext_LIB),  X11_XShm_FOUND<br />                X11_Xshape_INCLUDE_PATH,       (in X11_Xext_LIB),  X11_Xshape_FOUND<br />                X11_xf86misc_INCLUDE_PATH,     X11_Xxf86misc_LIB,  X11_xf86misc_FOUND<br />                X11_xf86vmode_INCLUDE_PATH,                        X11_xf86vmode_FOUND<br />                X11_Xfixes_INCLUDE_PATH,       X11_Xfixes_LIB,     X11_Xfixes_FOUND<br />                X11_Xft_INCLUDE_PATH,          X11_Xft_LIB,        X11_Xft_FOUND<br />                X11_Xi_INCLUDE_PATH,           X11_Xi_LIB,         X11_Xi_FOUND<br />                X11_Xinerama_INCLUDE_PATH,     X11_Xinerama_LIB,   X11_Xinerama_FOUND<br />                X11_Xinput_INCLUDE_PATH,       X11_Xinput_LIB,     X11_Xinput_FOUND<br />                X11_Xkb_INCLUDE_PATH,                              X11_Xkb_FOUND<br />                X11_Xkblib_INCLUDE_PATH,                           X11_Xkb_FOUND<br />                X11_Xkbfile_INCLUDE_PATH,      X11_Xkbfile_LIB,    X11_Xkbfile_FOUND<br />                X11_Xpm_INCLUDE_PATH,          X11_Xpm_LIB,        X11_Xpm_FOUND<br />                X11_XTest_INCLUDE_PATH,        X11_XTest_LIB,      X11_XTest_FOUND<br />                X11_Xrandr_INCLUDE_PATH,       X11_Xrandr_LIB,     X11_Xrandr_FOUND<br />                X11_Xrender_INCLUDE_PATH,      X11_Xrender_LIB,    X11_Xrender_FOUND<br />                X11_Xscreensaver_INCLUDE_PATH, X11_Xscreensaver_LIB, X11_Xscreensaver_FOUND<br />                X11_Xt_INCLUDE_PATH,           X11_Xt_LIB,         X11_Xt_FOUND<br />                X11_Xutil_INCLUDE_PATH,                            X11_Xutil_FOUND<br />                X11_Xv_INCLUDE_PATH,           X11_Xv_LIB,         X11_Xv_FOUND<br />                X11_XSync_INCLUDE_PATH,        (in X11_Xext_LIB),  X11_XSync_FOUND<br /></pre>
    
  </li>
  <li>
    <a name="module:FindXMLRPC"><b><code>FindXMLRPC</code></b></a>: Find xmlrpc<br />
    <p>Find the native XMLRPC headers and libraries.<br /></p>
<pre>  XMLRPC_INCLUDE_DIRS      - where to find xmlrpc.h, etc.<br />  XMLRPC_LIBRARIES         - List of libraries when using xmlrpc.<br />  XMLRPC_FOUND             - True if xmlrpc found.<br /></pre>
    <p>XMLRPC modules may be specified as components for this find module. Modules may be listed by running "xmlrpc-c-config".  Modules include:<br /></p>
<pre>  c++            C++ wrapper code<br />  libwww-client  libwww-based client<br />  cgi-server     CGI-based server<br />  abyss-server   ABYSS-based server<br /></pre>
    <p>Typical usage:<br /></p>
<pre>  FIND_PACKAGE(XMLRPC REQUIRED libwww-client)<br /></pre>
    
  </li>
  <li>
    <a name="module:FindZLIB"><b><code>FindZLIB</code></b></a>: Find zlib<br />
    <p>Find the native ZLIB includes and library. Once done this will define<br /></p>
<pre>  ZLIB_INCLUDE_DIRS   - where to find zlib.h, etc.<br />  ZLIB_LIBRARIES      - List of libraries when using zlib.<br />  ZLIB_FOUND          - True if zlib found.<br /></pre>
    <p><br /></p>
<pre>  ZLIB_VERSION_STRING - The version of zlib found (x.y.z)<br />  ZLIB_VERSION_MAJOR  - The major version of zlib<br />  ZLIB_VERSION_MINOR  - The minor version of zlib<br />  ZLIB_VERSION_PATCH  - The patch version of zlib<br />  ZLIB_VERSION_TWEAK  - The tweak version of zlib<br /></pre>
    <p><br /></p>
<p>The following variable are provided for backward compatibility<br /></p>
<pre>  ZLIB_MAJOR_VERSION  - The major version of zlib<br />  ZLIB_MINOR_VERSION  - The minor version of zlib<br />  ZLIB_PATCH_VERSION  - The patch version of zlib<br /></pre>
    <p><br /></p>
<p>An includer may set ZLIB_ROOT to a zlib installation root to tell this module where to look.</p>

  </li>
  <li>
    <a name="module:Findosg"><b><code>Findosg</code></b></a>:  <br />
    <p><br /></p>
<p>NOTE: It is highly recommended that you use the new FindOpenSceneGraph.cmake introduced in CMake 2.6.3 and not use this Find module directly.<br /></p>
<p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osg This module defines<br /></p>
<p>OSG_FOUND - Was the Osg found? OSG_INCLUDE_DIR - Where to find the headers OSG_LIBRARIES - The libraries to link against for the OSG (use this)<br /></p>
<p>OSG_LIBRARY - The OSG library OSG_LIBRARY_DEBUG - The OSG debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgAnimation"><b><code>FindosgAnimation</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgAnimation This module defines<br /></p>
<p>OSGANIMATION_FOUND - Was osgAnimation found? OSGANIMATION_INCLUDE_DIR - Where to find the headers OSGANIMATION_LIBRARIES - The libraries to link against for the OSG (use this)<br /></p>
<p>OSGANIMATION_LIBRARY - The OSG library OSGANIMATION_LIBRARY_DEBUG - The OSG debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgDB"><b><code>FindosgDB</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgDB This module defines<br /></p>
<p>OSGDB_FOUND - Was osgDB found? OSGDB_INCLUDE_DIR - Where to find the headers OSGDB_LIBRARIES - The libraries to link against for the osgDB (use this)<br /></p>
<p>OSGDB_LIBRARY - The osgDB library OSGDB_LIBRARY_DEBUG - The osgDB debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgFX"><b><code>FindosgFX</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgFX This module defines<br /></p>
<p>OSGFX_FOUND - Was osgFX found? OSGFX_INCLUDE_DIR - Where to find the headers OSGFX_LIBRARIES - The libraries to link against for the osgFX (use this)<br /></p>
<p>OSGFX_LIBRARY - The osgFX library OSGFX_LIBRARY_DEBUG - The osgFX debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgGA"><b><code>FindosgGA</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgGA This module defines<br /></p>
<p>OSGGA_FOUND - Was osgGA found? OSGGA_INCLUDE_DIR - Where to find the headers OSGGA_LIBRARIES - The libraries to link against for the osgGA (use this)<br /></p>
<p>OSGGA_LIBRARY - The osgGA library OSGGA_LIBRARY_DEBUG - The osgGA debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgIntrospection"><b><code>FindosgIntrospection</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgINTROSPECTION This module defines<br /></p>
<p>OSGINTROSPECTION_FOUND - Was osgIntrospection found? OSGINTROSPECTION_INCLUDE_DIR - Where to find the headers OSGINTROSPECTION_LIBRARIES - The libraries to link for osgIntrospection (use this)<br /></p>
<p>OSGINTROSPECTION_LIBRARY - The osgIntrospection library OSGINTROSPECTION_LIBRARY_DEBUG - The osgIntrospection debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgManipulator"><b><code>FindosgManipulator</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgManipulator This module defines<br /></p>
<p>OSGMANIPULATOR_FOUND - Was osgManipulator found? OSGMANIPULATOR_INCLUDE_DIR - Where to find the headers OSGMANIPULATOR_LIBRARIES - The libraries to link for osgManipulator (use this)<br /></p>
<p>OSGMANIPULATOR_LIBRARY - The osgManipulator library OSGMANIPULATOR_LIBRARY_DEBUG - The osgManipulator debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgParticle"><b><code>FindosgParticle</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgParticle This module defines<br /></p>
<p>OSGPARTICLE_FOUND - Was osgParticle found? OSGPARTICLE_INCLUDE_DIR - Where to find the headers OSGPARTICLE_LIBRARIES - The libraries to link for osgParticle (use this)<br /></p>
<p>OSGPARTICLE_LIBRARY - The osgParticle library OSGPARTICLE_LIBRARY_DEBUG - The osgParticle debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgProducer"><b><code>FindosgProducer</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgProducer This module defines<br /></p>
<p>OSGPRODUCER_FOUND - Was osgProducer found? OSGPRODUCER_INCLUDE_DIR - Where to find the headers OSGPRODUCER_LIBRARIES - The libraries to link for osgProducer (use this)<br /></p>
<p>OSGPRODUCER_LIBRARY - The osgProducer library OSGPRODUCER_LIBRARY_DEBUG - The osgProducer debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgShadow"><b><code>FindosgShadow</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgShadow This module defines<br /></p>
<p>OSGSHADOW_FOUND - Was osgShadow found? OSGSHADOW_INCLUDE_DIR - Where to find the headers OSGSHADOW_LIBRARIES - The libraries to link for osgShadow (use this)<br /></p>
<p>OSGSHADOW_LIBRARY - The osgShadow library OSGSHADOW_LIBRARY_DEBUG - The osgShadow debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgSim"><b><code>FindosgSim</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgSim This module defines<br /></p>
<p>OSGSIM_FOUND - Was osgSim found? OSGSIM_INCLUDE_DIR - Where to find the headers OSGSIM_LIBRARIES - The libraries to link for osgSim (use this)<br /></p>
<p>OSGSIM_LIBRARY - The osgSim library OSGSIM_LIBRARY_DEBUG - The osgSim debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgTerrain"><b><code>FindosgTerrain</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgTerrain This module defines<br /></p>
<p>OSGTERRAIN_FOUND - Was osgTerrain found? OSGTERRAIN_INCLUDE_DIR - Where to find the headers OSGTERRAIN_LIBRARIES - The libraries to link for osgTerrain (use this)<br /></p>
<p>OSGTERRAIN_LIBRARY - The osgTerrain library OSGTERRAIN_LIBRARY_DEBUG - The osgTerrain debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgText"><b><code>FindosgText</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgText This module defines<br /></p>
<p>OSGTEXT_FOUND - Was osgText found? OSGTEXT_INCLUDE_DIR - Where to find the headers OSGTEXT_LIBRARIES - The libraries to link for osgText (use this)<br /></p>
<p>OSGTEXT_LIBRARY - The osgText library OSGTEXT_LIBRARY_DEBUG - The osgText debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgUtil"><b><code>FindosgUtil</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgUtil This module defines<br /></p>
<p>OSGUTIL_FOUND - Was osgUtil found? OSGUTIL_INCLUDE_DIR - Where to find the headers OSGUTIL_LIBRARIES - The libraries to link for osgUtil (use this)<br /></p>
<p>OSGUTIL_LIBRARY - The osgUtil library OSGUTIL_LIBRARY_DEBUG - The osgUtil debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgViewer"><b><code>FindosgViewer</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgViewer This module defines<br /></p>
<p>OSGVIEWER_FOUND - Was osgViewer found? OSGVIEWER_INCLUDE_DIR - Where to find the headers OSGVIEWER_LIBRARIES - The libraries to link for osgViewer (use this)<br /></p>
<p>OSGVIEWER_LIBRARY - The osgViewer library OSGVIEWER_LIBRARY_DEBUG - The osgViewer debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgVolume"><b><code>FindosgVolume</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgVolume This module defines<br /></p>
<p>OSGVOLUME_FOUND - Was osgVolume found? OSGVOLUME_INCLUDE_DIR - Where to find the headers OSGVOLUME_LIBRARIES - The libraries to link for osgVolume (use this)<br /></p>
<p>OSGVOLUME_LIBRARY - The osgVolume library OSGVOLUME_LIBRARY_DEBUG - The osgVolume debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>Created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:FindosgWidget"><b><code>FindosgWidget</code></b></a>:  <br />
    <p>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.<br /></p>
<p>Locate osgWidget This module defines<br /></p>
<p>OSGWIDGET_FOUND - Was osgWidget found? OSGWIDGET_INCLUDE_DIR - Where to find the headers OSGWIDGET_LIBRARIES - The libraries to link for osgWidget (use this)<br /></p>
<p>OSGWIDGET_LIBRARY - The osgWidget library OSGWIDGET_LIBRARY_DEBUG - The osgWidget debug library<br /></p>
<p>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.<br /></p>
<p>FindosgWidget.cmake tweaked from Findosg* suite as created by Eric Wing.</p>

  </li>
  <li>
    <a name="module:Findosg_functions"><b><code>Findosg_functions</code></b></a>:  <br />
    <p><br /></p>
<p>This CMake file contains two macros to assist with searching for OSG libraries and nodekits.<br /></p>

  </li>
  <li>
    <a name="module:FindwxWidgets"><b><code>FindwxWidgets</code></b></a>: Find a wxWidgets (a.k.a., wxWindows) installation.<br />
    <p>This module finds if wxWidgets is installed and selects a default configuration to use. wxWidgets is a modular library. To specify the modules that you will use, you need to name them as components to the package:<br /></p>
<p>FIND_PACKAGE(wxWidgets COMPONENTS core base ...)<br /></p>
<p>There are two search branches: a windows style and a unix style. For windows, the following variables are searched for and set to defaults in case of multiple choices. Change them if the defaults are not desired (i.e., these are the only variables you should change to select a configuration):<br /></p>
<pre>  wxWidgets_ROOT_DIR      - Base wxWidgets directory<br />                            (e.g., C:/wxWidgets-2.6.3).<br />  wxWidgets_LIB_DIR       - Path to wxWidgets libraries<br />                            (e.g., C:/wxWidgets-2.6.3/lib/vc_lib).<br />  wxWidgets_CONFIGURATION - Configuration to use<br />                            (e.g., msw, mswd, mswu, mswunivud, etc.)<br />  wxWidgets_EXCLUDE_COMMON_LIBRARIES<br />                          - Set to TRUE to exclude linking of<br />                            commonly required libs (e.g., png tiff<br />                            jpeg zlib regex expat).<br /></pre>
    <p><br /></p>
<p>For unix style it uses the wx-config utility. You can select between debug/release, unicode/ansi, universal/non-universal, and static/shared in the QtDialog or ccmake interfaces by turning ON/OFF the following variables:<br /></p>
<pre>  wxWidgets_USE_DEBUG<br />  wxWidgets_USE_UNICODE<br />  wxWidgets_USE_UNIVERSAL<br />  wxWidgets_USE_STATIC<br /></pre>
    <p><br /></p>
<p>There is also a wxWidgets_CONFIG_OPTIONS variable for all other options that need to be passed to the wx-config utility. For example, to use the base toolkit found in the /usr/local path, set the variable (before calling the FIND_PACKAGE command) as such:<br /></p>
<pre>  SET(wxWidgets_CONFIG_OPTIONS --toolkit=base --prefix=/usr)<br /></pre>
    <p><br /></p>
<p>The following are set after the configuration is done for both windows and unix style:<br /></p>
<pre>  wxWidgets_FOUND            - Set to TRUE if wxWidgets was found.<br />  wxWidgets_INCLUDE_DIRS     - Include directories for WIN32<br />                               i.e., where to find "wx/wx.h" and<br />                               "wx/setup.h"; possibly empty for unices.<br />  wxWidgets_LIBRARIES        - Path to the wxWidgets libraries.<br />  wxWidgets_LIBRARY_DIRS     - compile time link dirs, useful for<br />                               rpath on UNIX. Typically an empty string<br />                               in WIN32 environment.<br />  wxWidgets_DEFINITIONS      - Contains defines required to compile/link<br />                               against WX, e.g. WXUSINGDLL<br />  wxWidgets_DEFINITIONS_DEBUG- Contains defines required to compile/link<br />                               against WX debug builds, e.g. __WXDEBUG__<br />  wxWidgets_CXX_FLAGS        - Include dirs and compiler flags for<br />                               unices, empty on WIN32. Essentially<br />                               "`wx-config --cxxflags`".<br />  wxWidgets_USE_FILE         - Convenience include file.<br /></pre>
    <p><br /></p>
<p>Sample usage:<br /></p>
<pre>   # Note that for MinGW users the order of libs is important!<br />   FIND_PACKAGE(wxWidgets COMPONENTS net gl core base)<br />   IF(wxWidgets_FOUND)<br />     INCLUDE(${wxWidgets_USE_FILE})<br />     # and for each of your dependent executable/library targets:<br />     TARGET_LINK_LIBRARIES(&lt;YourTarget&gt; ${wxWidgets_LIBRARIES})<br />   ENDIF(wxWidgets_FOUND)<br /></pre>
    <p><br /></p>
<p>If wxWidgets is required (i.e., not an optional part):<br /></p>
<pre>   FIND_PACKAGE(wxWidgets REQUIRED net gl core base)<br />   INCLUDE(${wxWidgets_USE_FILE})<br />   # and for each of your dependent executable/library targets:<br />   TARGET_LINK_LIBRARIES(&lt;YourTarget&gt; ${wxWidgets_LIBRARIES})<br /></pre>
    
  </li>
  <li>
    <a name="module:FindwxWindows"><b><code>FindwxWindows</code></b></a>: Find wxWindows (wxWidgets) installation<br />
    <p>This module finds if wxWindows/wxWidgets is installed and determines where the include files and libraries are. It also determines what the name of the library is. Please note this file is DEPRECATED and replaced by FindwxWidgets.cmake. This code sets the following variables:<br /></p>
<pre>  WXWINDOWS_FOUND     = system has WxWindows<br />  WXWINDOWS_LIBRARIES = path to the wxWindows libraries<br />                        on Unix/Linux with additional<br />                        linker flags from<br />                        "wx-config --libs"<br />  CMAKE_WXWINDOWS_CXX_FLAGS  = Compiler flags for wxWindows,<br />                               essentially "`wx-config --cxxflags`"<br />                               on Linux<br />  WXWINDOWS_INCLUDE_DIR      = where to find "wx/wx.h" and "wx/setup.h"<br />  WXWINDOWS_LINK_DIRECTORIES = link directories, useful for rpath on<br />                                Unix<br />  WXWINDOWS_DEFINITIONS      = extra defines<br /></pre>
    <p><br /></p>
<p>OPTIONS If you need OpenGL support please<br /></p>
<pre>  SET(WXWINDOWS_USE_GL 1)<br /></pre>
    <p>in your CMakeLists.txt *before* you include this file.<br /></p>
<pre>  HAVE_ISYSTEM      - true required to replace -I by -isystem on g++<br /></pre>
    <p><br /></p>
<p>For convenience include Use_wxWindows.cmake in your project's CMakeLists.txt using INCLUDE(Use_wxWindows).<br /></p>
<p>USAGE<br /></p>
<pre>  SET(WXWINDOWS_USE_GL 1)<br />  FIND_PACKAGE(wxWindows)<br /></pre>
    <p><br /></p>
<p>NOTES wxWidgets 2.6.x is supported for monolithic builds e.g. compiled  in wx/build/msw dir as:<br /></p>
<pre>  nmake -f makefile.vc BUILD=debug SHARED=0 USE_OPENGL=1 MONOLITHIC=1<br /></pre>
    <p><br /></p>
<p>DEPRECATED<br /></p>
<pre>  CMAKE_WX_CAN_COMPILE<br />  WXWINDOWS_LIBRARY<br />  CMAKE_WX_CXX_FLAGS<br />  WXWINDOWS_INCLUDE_PATH<br /></pre>
    <p><br /></p>
<p>AUTHOR Jan Woetzel &lt;<a href="http://www.mip.informatik.uni-kiel.de/~jw">http://www.mip.informatik.uni-kiel.de/~jw</a>&gt; (07/2003-01/2006)</p>

  </li>
  <li>
    <a name="module:FortranCInterface"><b><code>FortranCInterface</code></b></a>: Fortran/C Interface Detection<br />
    <p>This module automatically detects the API by which C and Fortran languages interact.  Variables indicate if the mangling is found:<br /></p>
<pre>   FortranCInterface_GLOBAL_FOUND = Global subroutines and functions<br />   FortranCInterface_MODULE_FOUND = Module subroutines and functions<br />                                    (declared by "MODULE PROCEDURE")<br /></pre>
    <p>A function is provided to generate a C header file containing macros to mangle symbol names:<br /></p>
<pre>   FortranCInterface_HEADER(&lt;file&gt;<br />                            [MACRO_NAMESPACE &lt;macro-ns&gt;]<br />                            [SYMBOL_NAMESPACE &lt;ns&gt;]<br />                            [SYMBOLS [&lt;module&gt;:]&lt;function&gt; ...])<br /></pre>
    <p>It generates in &lt;file&gt; definitions of the following macros:<br /></p>
<pre>   #define FortranCInterface_GLOBAL (name,NAME) ...<br />   #define FortranCInterface_GLOBAL_(name,NAME) ...<br />   #define FortranCInterface_MODULE (mod,name, MOD,NAME) ...<br />   #define FortranCInterface_MODULE_(mod,name, MOD,NAME) ...<br /></pre>
    <p>These macros mangle four categories of Fortran symbols, respectively:<br /></p>
<pre>   - Global symbols without '_': call mysub()<br />   - Global symbols with '_'   : call my_sub()<br />   - Module symbols without '_': use mymod; call mysub()<br />   - Module symbols with '_'   : use mymod; call my_sub()<br /></pre>
    <p>If mangling for a category is not known, its macro is left undefined. All macros require raw names in both lower case and upper case. The MACRO_NAMESPACE option replaces the default "FortranCInterface_" prefix with a given namespace "&lt;macro-ns&gt;".<br /></p>
<p>The SYMBOLS option lists symbols to mangle automatically with C preprocessor definitions:<br /></p>
<pre>   &lt;function&gt;          ==&gt; #define &lt;ns&gt;&lt;function&gt; ...<br />   &lt;module&gt;:&lt;function&gt; ==&gt; #define &lt;ns&gt;&lt;module&gt;_&lt;function&gt; ...<br /></pre>
    <p>If the mangling for some symbol is not known then no preprocessor definition is created, and a warning is displayed. The SYMBOL_NAMESPACE option prefixes all preprocessor definitions generated by the SYMBOLS option with a given namespace "&lt;ns&gt;".<br /></p>
<p>Example usage:<br /></p>
<pre>   include(FortranCInterface)<br />   FortranCInterface_HEADER(FC.h MACRO_NAMESPACE "FC_")<br /></pre>
    <p>This creates a "FC.h" header that defines mangling macros FC_GLOBAL(), FC_GLOBAL_(), FC_MODULE(), and FC_MODULE_().<br /></p>
<p>Example usage:<br /></p>
<pre>   include(FortranCInterface)<br />   FortranCInterface_HEADER(FCMangle.h<br />                            MACRO_NAMESPACE "FC_"<br />                            SYMBOL_NAMESPACE "FC_"<br />                            SYMBOLS mysub mymod:my_sub)<br /></pre>
    <p>This creates a "FCMangle.h" header that defines the same FC_*() mangling macros as the previous example plus preprocessor symbols FC_mysub and FC_mymod_my_sub.<br /></p>
<p>Another function is provided to verify that the Fortran and C/C++ compilers work together:<br /></p>
<pre>   FortranCInterface_VERIFY([CXX] [QUIET])<br /></pre>
    <p>It tests whether a simple test executable using Fortran and C (and C++ when the CXX option is given) compiles and links successfully. The result is stored in the cache entry FortranCInterface_VERIFIED_C (or FortranCInterface_VERIFIED_CXX if CXX is given) as a boolean. If the check fails and QUIET is not given the function terminates with a FATAL_ERROR message describing the problem.  The purpose of this check is to stop a build early for incompatible compiler combinations.<br /></p>
<p>FortranCInterface is aware of possible GLOBAL and MODULE manglings for many Fortran compilers, but it also provides an interface to specify new possible manglings.  Set the variables<br /></p>
<pre>   FortranCInterface_GLOBAL_SYMBOLS<br />   FortranCInterface_MODULE_SYMBOLS<br /></pre>
    <p>before including FortranCInterface to specify manglings of the symbols "MySub", "My_Sub", "MyModule:MySub", and "My_Module:My_Sub". For example, the code:<br /></p>
<pre>   set(FortranCInterface_GLOBAL_SYMBOLS mysub_ my_sub__ MYSUB_)<br />     #                                  ^^^^^  ^^^^^^   ^^^^^<br />   set(FortranCInterface_MODULE_SYMBOLS<br />       __mymodule_MOD_mysub __my_module_MOD_my_sub)<br />     #   ^^^^^^^^     ^^^^^   ^^^^^^^^^     ^^^^^^<br />   include(FortranCInterface)<br /></pre>
    <p>tells FortranCInterface to try given GLOBAL and MODULE manglings. (The carets point at raw symbol names for clarity in this example but are not needed.)</p>

  </li>
  <li>
    <a name="module:GNUInstallDirs"><b><code>GNUInstallDirs</code></b></a>: Define GNU standard installation directories<br />
    <p>Provides install directory variables as defined for GNU software:<br /></p>
<pre>  <a href="http://www.gnu.org/prep/standards/html_node/Directory-Variables.html">http://www.gnu.org/prep/standards/html_node/Directory-Variables.html</a><br /></pre>
    <p>Inclusion of this module defines the following variables:<br /></p>
<pre>  CMAKE_INSTALL_&lt;dir&gt;      - destination for files of a given type<br />  CMAKE_INSTALL_FULL_&lt;dir&gt; - corresponding absolute path<br /></pre>
    <p>where &lt;dir&gt; is one of:<br /></p>
<pre>  BINDIR           - user executables (bin)<br />  SBINDIR          - system admin executables (sbin)<br />  LIBEXECDIR       - program executables (libexec)<br />  SYSCONFDIR       - read-only single-machine data (etc)<br />  SHAREDSTATEDIR   - modifiable architecture-independent data (com)<br />  LOCALSTATEDIR    - modifiable single-machine data (var)<br />  LIBDIR           - object code libraries (lib or lib64)<br />  INCLUDEDIR       - C header files (include)<br />  OLDINCLUDEDIR    - C header files for non-gcc (/usr/include)<br />  DATAROOTDIR      - read-only architecture-independent data root (share)<br />  DATADIR          - read-only architecture-independent data (DATAROOTDIR)<br />  INFODIR          - info documentation (DATAROOTDIR/info)<br />  LOCALEDIR        - locale-dependent data (DATAROOTDIR/locale)<br />  MANDIR           - man documentation (DATAROOTDIR/man)<br />  DOCDIR           - documentation root (DATAROOTDIR/doc/PROJECT_NAME)<br /></pre>
    <p>Each CMAKE_INSTALL_&lt;dir&gt; value may be passed to the DESTINATION options of install() commands for the corresponding file type.  If the includer does not define a value the above-shown default will be used and the value will appear in the cache for editing by the user. Each CMAKE_INSTALL_FULL_&lt;dir&gt; value contains an absolute path constructed from the corresponding destination by prepending (if necessary) the value of CMAKE_INSTALL_PREFIX.</p>

  </li>
  <li>
    <a name="module:GenerateExportHeader"><b><code>GenerateExportHeader</code></b></a>: Function for generation of export macros for libraries<br />
    <p>This module provides the function GENERATE_EXPORT_HEADER() and the accompanying ADD_COMPILER_EXPORT_FLAGS() function.<br /></p>
<p>The GENERATE_EXPORT_HEADER function can be used to generate a file suitable for preprocessor inclusion which contains EXPORT macros to be used in library classes.<br /></p>
<p>GENERATE_EXPORT_HEADER( LIBRARY_TARGET<br /></p>
<pre>             [BASE_NAME &lt;base_name&gt;]<br />             [EXPORT_MACRO_NAME &lt;export_macro_name&gt;]<br />             [EXPORT_FILE_NAME &lt;export_file_name&gt;]<br />             [DEPRECATED_MACRO_NAME &lt;deprecated_macro_name&gt;]<br />             [NO_EXPORT_MACRO_NAME &lt;no_export_macro_name&gt;]<br />             [STATIC_DEFINE &lt;static_define&gt;]<br />             [NO_DEPRECATED_MACRO_NAME &lt;no_deprecated_macro_name&gt;]<br />             [DEFINE_NO_DEPRECATED]<br />             [PREFIX_NAME &lt;prefix_name&gt;]<br /></pre>
    <p>)<br /></p>
<p>ADD_COMPILER_EXPORT_FLAGS( [FATAL_WARNINGS] )<br /></p>
<p>By default GENERATE_EXPORT_HEADER() generates macro names in a file name determined by the name of the library. The ADD_COMPILER_EXPORT_FLAGS function adds -fvisibility=hidden to CMAKE_CXX_FLAGS if supported, and is a no-op on Windows which does not need extra compiler flags for exporting support. You may optionally pass a single argument to ADD_COMPILER_EXPORT_FLAGS that will be populated with the required CXX_FLAGS required to enable visibility support for the compiler/architecture in use.<br /></p>
<p>This means that in the simplest case, users of these functions will be equivalent to:<br /></p>
<pre>   add_compiler_export_flags()<br />   add_library(somelib someclass.cpp)<br />   generate_export_header(somelib)<br />   install(TARGETS somelib DESTINATION ${LIBRARY_INSTALL_DIR})<br />   install(FILES<br />    someclass.h<br />    ${PROJECT_BINARY_DIR}/somelib_export.h DESTINATION ${INCLUDE_INSTALL_DIR}<br />   )<br /></pre>
    <p><br /></p>
<p>And in the ABI header files:<br /></p>
<pre>   #include "somelib_export.h"<br />   class SOMELIB_EXPORT SomeClass {<br />     ...<br />   };<br /></pre>
    <p><br /></p>
<p>The CMake fragment will generate a file in the ${CMAKE_CURRENT_BUILD_DIR} called somelib_export.h containing the macros SOMELIB_EXPORT, SOMELIB_NO_EXPORT, SOMELIB_DEPRECATED, SOMELIB_DEPRECATED_EXPORT and SOMELIB_DEPRECATED_NO_EXPORT. The resulting file should be installed with other headers in the library.<br /></p>
<p>The BASE_NAME argument can be used to override the file name and the names used for the macros<br /></p>
<pre>   add_library(somelib someclass.cpp)<br />   generate_export_header(somelib<br />     BASE_NAME other_name<br />   )<br /></pre>
    <p><br /></p>
<p>Generates a file called other_name_export.h containing the macros OTHER_NAME_EXPORT, OTHER_NAME_NO_EXPORT and OTHER_NAME_DEPRECATED etc.<br /></p>
<p>The BASE_NAME may be overridden by specifiying other options in the function. For example:<br /></p>
<pre>   add_library(somelib someclass.cpp)<br />   generate_export_header(somelib<br />     EXPORT_MACRO_NAME OTHER_NAME_EXPORT<br />   )<br /></pre>
    <p><br /></p>
<p>creates the macro OTHER_NAME_EXPORT instead of SOMELIB_EXPORT, but other macros and the generated file name is as default.<br /></p>
<pre>   add_library(somelib someclass.cpp)<br />   generate_export_header(somelib<br />     DEPRECATED_MACRO_NAME KDE_DEPRECATED<br />   )<br /></pre>
    <p><br /></p>
<p>creates the macro KDE_DEPRECATED instead of SOMELIB_DEPRECATED.<br /></p>
<p>If LIBRARY_TARGET is a static library, macros are defined without values.<br /></p>
<p>If the same sources are used to create both a shared and a static library, the uppercased symbol ${BASE_NAME}_STATIC_DEFINE should be used when building the static library<br /></p>
<pre>   add_library(shared_variant SHARED ${lib_SRCS})<br />   add_library(static_variant ${lib_SRCS})<br />   generate_export_header(shared_variant BASE_NAME libshared_and_static)<br />   set_target_properties(static_variant PROPERTIES<br />     COMPILE_FLAGS -DLIBSHARED_AND_STATIC_STATIC_DEFINE)<br /></pre>
    <p><br /></p>
<p>This will cause the export macros to expand to nothing when building the static library.<br /></p>
<p>If DEFINE_NO_DEPRECATED is specified, then a macro ${BASE_NAME}_NO_DEPRECATED will be defined This macro can be used to remove deprecated code from preprocessor output.<br /></p>
<pre>   option(EXCLUDE_DEPRECATED "Exclude deprecated parts of the library" FALSE)<br />   if (EXCLUDE_DEPRECATED)<br />     set(NO_BUILD_DEPRECATED DEFINE_NO_DEPRECATED)<br />   endif()<br />   generate_export_header(somelib ${NO_BUILD_DEPRECATED})<br /></pre>
    <p><br /></p>
<p>And then in somelib:<br /></p>
<pre>   class SOMELIB_EXPORT SomeClass<br />   {<br />   public:<br />   #ifndef SOMELIB_NO_DEPRECATED<br />     SOMELIB_DEPRECATED void oldMethod();<br />   #endif<br />   };<br /></pre>
    <p><br /></p>
<pre>   #ifndef SOMELIB_NO_DEPRECATED<br />   void SomeClass::oldMethod() {  }<br />   #endif<br /></pre>
    <p><br /></p>
<p>If PREFIX_NAME is specified, the argument will be used as a prefix to all generated macros.<br /></p>
<p>For example:<br /></p>
<pre>   generate_export_header(somelib PREFIX_NAME VTK_)<br /></pre>
    <p><br /></p>
<p>Generates the macros VTK_SOMELIB_EXPORT etc.</p>

  </li>
  <li>
    <a name="module:GetPrerequisites"><b><code>GetPrerequisites</code></b></a>: Functions to analyze and list executable file prerequisites.<br />
    <p>This module provides functions to list the .dll, .dylib or .so files that an executable or shared library file depends on. (Its prerequisites.)<br /></p>
<p>It uses various tools to obtain the list of required shared library files:<br /></p>
<pre>   dumpbin (Windows)<br />   ldd (Linux/Unix)<br />   otool (Mac OSX)<br /></pre>
    <p>The following functions are provided by this module:<br /></p>
<pre>   get_prerequisites<br />   list_prerequisites<br />   list_prerequisites_by_glob<br />   gp_append_unique<br />   is_file_executable<br />   gp_item_default_embedded_path<br />     (projects can override with gp_item_default_embedded_path_override)<br />   gp_resolve_item<br />     (projects can override with gp_resolve_item_override)<br />   gp_resolved_file_type<br />     (projects can override with gp_resolved_file_type_override)<br />   gp_file_type<br /></pre>
    <p>Requires CMake 2.6 or greater because it uses function, break, return and PARENT_SCOPE.<br /></p>
<pre>  GET_PREREQUISITES(&lt;target&gt; &lt;prerequisites_var&gt; &lt;exclude_system&gt; &lt;recurse&gt;<br />                    &lt;exepath&gt; &lt;dirs&gt;)<br /></pre>
    <p>Get the list of shared library files required by &lt;target&gt;. The list in the variable named &lt;prerequisites_var&gt; should be empty on first entry to this function. On exit, &lt;prerequisites_var&gt; will contain the list of required shared library files.<br /></p>
<p>&lt;target&gt; is the full path to an executable file. &lt;prerequisites_var&gt; is the name of a CMake variable to contain the results. &lt;exclude_system&gt; must be 0 or 1 indicating whether to include or exclude "system" prerequisites. If &lt;recurse&gt; is set to 1 all prerequisites will be found recursively, if set to 0 only direct prerequisites are listed. &lt;exepath&gt; is the path to the top level executable used for @executable_path replacment on the Mac. &lt;dirs&gt; is a list of paths where libraries might be found: these paths are searched first when a target without any path info is given. Then standard system locations are also searched: PATH, Framework locations, /usr/lib...<br /></p>
<pre>  LIST_PREREQUISITES(&lt;target&gt; [&lt;recurse&gt; [&lt;exclude_system&gt; [&lt;verbose&gt;]]])<br /></pre>
    <p>Print a message listing the prerequisites of &lt;target&gt;.<br /></p>
<p>&lt;target&gt; is the name of a shared library or executable target or the full path to a shared library or executable file. If &lt;recurse&gt; is set to 1 all prerequisites will be found recursively, if set to 0 only direct prerequisites are listed. &lt;exclude_system&gt; must be 0 or 1 indicating whether to include or exclude "system" prerequisites. With &lt;verbose&gt; set to 0 only the full path names of the prerequisites are printed, set to 1 extra informatin will be displayed.<br /></p>
<pre>  LIST_PREREQUISITES_BY_GLOB(&lt;glob_arg&gt; &lt;glob_exp&gt;)<br /></pre>
    <p>Print the prerequisites of shared library and executable files matching a globbing pattern. &lt;glob_arg&gt; is GLOB or GLOB_RECURSE and &lt;glob_exp&gt; is a globbing expression used with "file(GLOB" or "file(GLOB_RECURSE" to retrieve a list of matching files. If a matching file is executable, its prerequisites are listed.<br /></p>
<p>Any additional (optional) arguments provided are passed along as the optional arguments to the list_prerequisites calls.<br /></p>
<pre>  GP_APPEND_UNIQUE(&lt;list_var&gt; &lt;value&gt;)<br /></pre>
    <p>Append &lt;value&gt; to the list variable &lt;list_var&gt; only if the value is not already in the list.<br /></p>
<pre>  IS_FILE_EXECUTABLE(&lt;file&gt; &lt;result_var&gt;)<br /></pre>
    <p>Return 1 in &lt;result_var&gt; if &lt;file&gt; is a binary executable, 0 otherwise.<br /></p>
<pre>  GP_ITEM_DEFAULT_EMBEDDED_PATH(&lt;item&gt; &lt;default_embedded_path_var&gt;)<br /></pre>
    <p>Return the path that others should refer to the item by when the item is embedded inside a bundle.<br /></p>
<p>Override on a per-project basis by providing a project-specific gp_item_default_embedded_path_override function.<br /></p>
<pre>  GP_RESOLVE_ITEM(&lt;context&gt; &lt;item&gt; &lt;exepath&gt; &lt;dirs&gt; &lt;resolved_item_var&gt;)<br /></pre>
    <p>Resolve an item into an existing full path file.<br /></p>
<p>Override on a per-project basis by providing a project-specific gp_resolve_item_override function.<br /></p>
<pre>  GP_RESOLVED_FILE_TYPE(&lt;original_file&gt; &lt;file&gt; &lt;exepath&gt; &lt;dirs&gt; &lt;type_var&gt;)<br /></pre>
    <p>Return the type of &lt;file&gt; with respect to &lt;original_file&gt;. String describing type of prerequisite is returned in variable named &lt;type_var&gt;.<br /></p>
<p>Use &lt;exepath&gt; and &lt;dirs&gt; if necessary to resolve non-absolute &lt;file&gt; values -- but only for non-embedded items.<br /></p>
<p>Possible types are:<br /></p>
<pre>   system<br />   local<br />   embedded<br />   other<br /></pre>
    <p>Override on a per-project basis by providing a project-specific gp_resolved_file_type_override function.<br /></p>
<pre>  GP_FILE_TYPE(&lt;original_file&gt; &lt;file&gt; &lt;type_var&gt;)<br /></pre>
    <p>Return the type of &lt;file&gt; with respect to &lt;original_file&gt;. String describing type of prerequisite is returned in variable named &lt;type_var&gt;.<br /></p>
<p>Possible types are:<br /></p>
<pre>   system<br />   local<br />   embedded<br />   other<br /></pre>
    
  </li>
  <li>
    <a name="module:InstallRequiredSystemLibraries"><b><code>InstallRequiredSystemLibraries</code></b></a>:  <br />
    <p>By including this file, all library files listed in the variable CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS will be installed with INSTALL(PROGRAMS ...) into bin for WIN32 and lib for non-WIN32. If CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP is set to TRUE before including this file, then the INSTALL command is not called. The user can use the variable CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS to use a custom install command and install them however they want. If it is the MSVC compiler, then the microsoft run time libraries will be found and automatically added to the CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS, and installed. If CMAKE_INSTALL_DEBUG_LIBRARIES is set and it is the MSVC compiler, then the debug libraries are installed when available. If CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY is set then only the debug libraries are installed when both debug and release are available. If CMAKE_INSTALL_MFC_LIBRARIES is set then the MFC run time libraries are installed as well as the CRT run time libraries. If CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION is set then the libraries are installed to that directory rather than the default. If CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS is NOT set, then this file warns about required files that do not exist. You can set this variable to ON before including this file to avoid the warning. For example, the Visual Studio Express editions do not include the redistributable files, so if you include this file on a machine with only VS Express installed, you'll get the warning.</p>

  </li>
  <li>
    <a name="module:MacroAddFileDependencies"><b><code>MacroAddFileDependencies</code></b></a>: MACRO_ADD_FILE_DEPENDENCIES(&lt;_file&gt; depend_files...)<br />
    <p>Using the macro MACRO_ADD_FILE_DEPENDENCIES() is discouraged. There are usually better ways to specify the correct dependencies.<br /></p>
<p>MACRO_ADD_FILE_DEPENDENCIES(&lt;_file&gt; depend_files...) is just a convenience  wrapper around the OBJECT_DEPENDS source file property. You can just use SET_PROPERTY(SOURCE &lt;file&gt; APPEND PROPERTY OBJECT_DEPENDS depend_files) instead.</p>

  </li>
  <li>
    <a name="module:ProcessorCount"><b><code>ProcessorCount</code></b></a>: ProcessorCount(var)<br />
    <p>Determine the number of processors/cores and save value in ${var}<br /></p>
<p>Sets the variable named ${var} to the number of physical cores available on the machine if the information can be determined. Otherwise it is set to 0. Currently this functionality is implemented for AIX, cygwin, FreeBSD, HPUX, IRIX, Linux, Mac OS X, QNX, Sun and Windows.<br /></p>
<p>This function is guaranteed to return a positive integer (&gt;=1) if it succeeds. It returns 0 if there's a problem determining the processor count.<br /></p>
<p>Example use, in a ctest -S dashboard script:<br /></p>
<pre>   include(ProcessorCount)<br />   ProcessorCount(N)<br />   if(NOT N EQUAL 0)<br />     set(CTEST_BUILD_FLAGS -j${N})<br />     set(ctest_test_args ${ctest_test_args} PARALLEL_LEVEL ${N})<br />   endif()<br /></pre>
    <p><br /></p>
<p>This function is intended to offer an approximation of the value of the number of compute cores available on the current machine, such that you may use that value for parallel building and parallel testing. It is meant to help utilize as much of the machine as seems reasonable. Of course, knowledge of what else might be running on the machine simultaneously should be used when deciding whether to request a machine's full capacity all for yourself.</p>

  </li>
  <li>
    <a name="module:Qt4ConfigDependentSettings"><b><code>Qt4ConfigDependentSettings</code></b></a>:  <br />
    <p>This file is included by FindQt4.cmake, don't include it directly.</p>

  </li>
  <li>
    <a name="module:Qt4Macros"><b><code>Qt4Macros</code></b></a>:  <br />
    <p>This file is included by FindQt4.cmake, don't include it directly.</p>

  </li>
  <li>
    <a name="module:SelectLibraryConfigurations"><b><code>SelectLibraryConfigurations</code></b></a>:  <br />
    <p>select_library_configurations( basename )<br /></p>
<p>This macro takes a library base name as an argument, and will choose good values for basename_LIBRARY, basename_LIBRARIES, basename_LIBRARY_DEBUG, and basename_LIBRARY_RELEASE depending on what has been found and set.  If only basename_LIBRARY_RELEASE is defined, basename_LIBRARY, basename_LIBRARY_DEBUG, and basename_LIBRARY_RELEASE will be set to the release value.  If only basename_LIBRARY_DEBUG is defined, then basename_LIBRARY, basename_LIBRARY_DEBUG and basename_LIBRARY_RELEASE will take the debug value.  <br /></p>
<p>If the generator supports configuration types, then basename_LIBRARY and basename_LIBRARIES will be set with debug and optimized flags specifying the library to be used for the given configuration.  If no build type has been set or the generator in use does not support configuration types, then basename_LIBRARY and basename_LIBRARIES will take only the release values.</p>

  </li>
  <li>
    <a name="module:SquishTestScript"><b><code>SquishTestScript</code></b></a>:  <br />
    <p><br /></p>
<p>This script launches a GUI test using Squish.  You should not call the script directly; instead, you should access it via the SQUISH_ADD_TEST macro that is defined in FindSquish.cmake.<br /></p>
<p>This script starts the Squish server, launches the test on the client, and finally stops the squish server.  If any of these steps fail (including if the tests do not pass) then a fatal error is raised.<br /></p>

  </li>
  <li>
    <a name="module:TestBigEndian"><b><code>TestBigEndian</code></b></a>: Define macro to determine endian type<br />
    <p>Check if the system is big endian or little endian<br /></p>
<pre>  TEST_BIG_ENDIAN(VARIABLE)<br />  VARIABLE - variable to store the result to<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:TestCXXAcceptsFlag"><b><code>TestCXXAcceptsFlag</code></b></a>: Test CXX compiler for a flag<br />
    <p>Check if the CXX compiler accepts a flag<br /></p>
<pre>  Macro CHECK_CXX_ACCEPTS_FLAG(FLAGS VARIABLE) -<br />     checks if the function exists<br />  FLAGS - the flags to try<br />  VARIABLE - variable to store the result<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:TestForANSIForScope"><b><code>TestForANSIForScope</code></b></a>: Check for ANSI for scope support<br />
    <p>Check if the compiler restricts the scope of variables declared in a for-init-statement to the loop body.<br /></p>
<pre>  CMAKE_NO_ANSI_FOR_SCOPE - holds result<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:TestForANSIStreamHeaders"><b><code>TestForANSIStreamHeaders</code></b></a>: Test for compiler support of ANSI stream headers iostream, etc.<br />
    <p>check if the compiler supports the standard ANSI iostream header (without the .h)<br /></p>
<pre>  CMAKE_NO_ANSI_STREAM_HEADERS - defined by the results<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:TestForSSTREAM"><b><code>TestForSSTREAM</code></b></a>: Test for compiler support of ANSI sstream header<br />
    <p>check if the compiler supports the standard ANSI sstream header<br /></p>
<pre>  CMAKE_NO_ANSI_STRING_STREAM - defined by the results<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:TestForSTDNamespace"><b><code>TestForSTDNamespace</code></b></a>: Test for std:: namespace support<br />
    <p>check if the compiler supports std:: on stl classes<br /></p>
<pre>  CMAKE_NO_STD_NAMESPACE - defined by the results<br /></pre>
    <p><br /></p>

  </li>
  <li>
    <a name="module:UseEcos"><b><code>UseEcos</code></b></a>: This module defines variables and macros required to build eCos application.<br />
    <p>This file contains the following macros: ECOS_ADD_INCLUDE_DIRECTORIES() - add the eCos include dirs ECOS_ADD_EXECUTABLE(name source1 ... sourceN ) - create an eCos executable ECOS_ADJUST_DIRECTORY(VAR source1 ... sourceN ) - adjusts the path of the source files and puts the result into VAR<br /></p>
<p>Macros for selecting the toolchain: ECOS_USE_ARM_ELF_TOOLS()       - enable the ARM ELF toolchain for the directory where it is called ECOS_USE_I386_ELF_TOOLS()      - enable the i386 ELF toolchain for the directory where it is called ECOS_USE_PPC_EABI_TOOLS()      - enable the PowerPC toolchain for the directory where it is called<br /></p>
<p>It contains the following variables: ECOS_DEFINITIONS ECOSCONFIG_EXECUTABLE ECOS_CONFIG_FILE               - defaults to ecos.ecc, if your eCos configuration file has a different name, adjust this variable for internal use only:<br /></p>
<pre>  ECOS_ADD_TARGET_LIB<br /></pre>
    
  </li>
  <li>
    <a name="module:UseJava"><b><code>UseJava</code></b></a>: Use Module for Java<br />
    <p>This file provides functions for Java. It is assumed that FindJava.cmake has already been loaded.  See FindJava.cmake for information on how to load Java into your CMake project.<br /></p>
<p>add_jar(TARGET_NAME SRC1 SRC2 .. SRCN RCS1 RCS2 .. RCSN)<br /></p>
<p>This command creates a &lt;TARGET_NAME&gt;.jar. It compiles the given source files (SRC) and adds the given resource files (RCS) to the jar file. If only resource files are given then just a jar file is created.<br /></p>
<p>Additional instructions:<br /></p>
<pre>   To add compile flags to the target you can set these flags with<br />   the following variable:<br /></pre>
    <p><br /></p>
<pre>       set(CMAKE_JAVA_COMPILE_FLAGS -nowarn)<br /></pre>
    <p><br /></p>
<pre>   To add a path or a jar file to the class path you can do this<br />   with the CMAKE_JAVA_INCLUDE_PATH variable.<br /></pre>
    <p><br /></p>
<pre>       set(CMAKE_JAVA_INCLUDE_PATH /usr/share/java/shibboleet.jar)<br /></pre>
    <p><br /></p>
<pre>   To use a different output name for the target you can set it with:<br /></pre>
    <p><br /></p>
<pre>       set(CMAKE_JAVA_TARGET_OUTPUT_NAME shibboleet.jar)<br />       add_jar(foobar foobar.java)<br /></pre>
    <p><br /></p>
<pre>   To add a VERSION to the target output name you can set it using<br />   CMAKE_JAVA_TARGET_VERSION. This will create a jar file with the name<br />   shibboleet-1.0.0.jar and will create a symlink shibboleet.jar<br />   pointing to the jar with the version information.<br /></pre>
    <p><br /></p>
<pre>       set(CMAKE_JAVA_TARGET_VERSION 1.2.0)<br />       add_jar(shibboleet shibbotleet.java)<br /></pre>
    <p><br /></p>
<pre>    If the target is a JNI library, utilize the following commands to<br />    create a JNI symbolic link:<br /></pre>
    <p><br /></p>
<pre>       set(CMAKE_JNI_TARGET TRUE)<br />       set(CMAKE_JAVA_TARGET_VERSION 1.2.0)<br />       add_jar(shibboleet shibbotleet.java)<br />       install_jar(shibboleet ${LIB_INSTALL_DIR}/shibboleet)<br />       install_jni_symlink(shibboleet ${JAVA_LIB_INSTALL_DIR})<br /></pre>
    <p><br /></p>
<pre>    If a single target needs to produce more than one jar from its<br />    java source code, to prevent the accumulation of duplicate class<br />    files in subsequent jars, set/reset CMAKE_JAR_CLASSES_PREFIX prior<br />    to calling the add_jar() function:<br /></pre>
    <p><br /></p>
<pre>       set(CMAKE_JAR_CLASSES_PREFIX com/redhat/foo)<br />       add_jar(foo foo.java)<br /></pre>
    <p><br /></p>
<pre>       set(CMAKE_JAR_CLASSES_PREFIX com/redhat/bar)<br />       add_jar(bar bar.java)<br /></pre>
    <p><br /></p>
<p>Target Properties:<br /></p>
<pre>   The add_jar() functions sets some target properties. You can get these<br />   properties with the<br />      get_property(TARGET &lt;target_name&gt; PROPERTY &lt;propery_name&gt;)<br />   command.<br /></pre>
    <p><br /></p>
<pre>   INSTALL_FILES      The files which should be installed. This is used by<br />                      install_jar().<br />   JNI_SYMLINK        The JNI symlink which should be installed.<br />                      This is used by install_jni_symlink().<br />   JAR_FILE           The location of the jar file so that you can include<br />                      it.<br />   CLASS_DIR          The directory where the class files can be found. For<br />                      example to use them with javah.<br /></pre>
    <p><br /></p>
<p>find_jar(&lt;VAR&gt;<br /></p>
<pre>          name | NAMES name1 [name2 ...]<br />          [PATHS path1 [path2 ... ENV var]]<br />          [VERSIONS version1 [version2]]<br />          [DOC "cache documentation string"]<br />         )<br /></pre>
    <p><br /></p>
<p>This command is used to find a full path to the named jar. A cache entry named by &lt;VAR&gt; is created to stor the result of this command. If the full path to a jar is found the result is stored in the variable and the search will not repeated unless the variable is cleared. If nothing is found, the result will be &lt;VAR&gt;-NOTFOUND, and the search will be attempted again next time find_jar is invoked with the same variable. The name of the full path to a file that is searched for is specified by the names listed after NAMES argument. Additional search locations can be specified after the PATHS argument. If you require special a version of a jar file you can specify it with the VERSIONS argument. The argument after DOC will be used for the documentation string in the cache.<br /></p>
<p>install_jar(TARGET_NAME DESTINATION)<br /></p>
<p>This command installs the TARGET_NAME files to the given DESTINATION. It should be called in the same scope as add_jar() or it will fail.<br /></p>
<p>install_jni_symlink(TARGET_NAME DESTINATION)<br /></p>
<p>This command installs the TARGET_NAME JNI symlinks to the given DESTINATION. It should be called in the same scope as add_jar() or it will fail.<br /></p>
<p>create_javadoc(&lt;VAR&gt;<br /></p>
<pre>                PACKAGES pkg1 [pkg2 ...]<br />                [SOURCEPATH &lt;sourcepath&gt;]<br />                [CLASSPATH &lt;classpath&gt;]<br />                [INSTALLPATH &lt;install path&gt;]<br />                [DOCTITLE "the documentation title"]<br />                [WINDOWTITLE "the title of the document"]<br />                [AUTHOR TRUE|FALSE]<br />                [USE TRUE|FALSE]<br />                [VERSION TRUE|FALSE]<br />               )<br /></pre>
    <p><br /></p>
<p>Create jave documentation based on files or packages. For more details please read the javadoc manpage.<br /></p>
<p>There are two main signatures for create_javadoc. The first signature works with package names on a path with source files:<br /></p>
<pre>   Example:<br />   create_javadoc(my_example_doc<br />     PACKAGES com.exmaple.foo com.example.bar<br />     SOURCEPATH ${CMAKE_CURRENT_SOURCE_PATH}<br />     CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH}<br />     WINDOWTITLE "My example"<br />     DOCTITLE "&lt;h1&gt;My example&lt;/h1&gt;"<br />     AUTHOR TRUE<br />     USE TRUE<br />     VERSION TRUE<br />   )<br /></pre>
    <p><br /></p>
<p>The second signature for create_javadoc works on a given list of files.<br /></p>
<pre>   create_javadoc(&lt;VAR&gt;<br />                  FILES file1 [file2 ...]<br />                  [CLASSPATH &lt;classpath&gt;]<br />                  [INSTALLPATH &lt;install path&gt;]<br />                  [DOCTITLE "the documentation title"]<br />                  [WINDOWTITLE "the title of the document"]<br />                  [AUTHOR TRUE|FALSE]<br />                  [USE TRUE|FALSE]<br />                  [VERSION TRUE|FALSE]<br />                 )<br /></pre>
    <p><br /></p>
<p>Example:<br /></p>
<pre>   create_javadoc(my_example_doc<br />     FILES ${example_SRCS}<br />     CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH}<br />     WINDOWTITLE "My example"<br />     DOCTITLE "&lt;h1&gt;My example&lt;/h1&gt;"<br />     AUTHOR TRUE<br />     USE TRUE<br />     VERSION TRUE<br />   )<br /></pre>
    <p><br /></p>
<p>Both signatures share most of the options. These options are the same as what you can find in the javadoc manpage. Please look at the manpage for CLASSPATH, DOCTITLE, WINDOWTITLE, AUTHOR, USE and VERSION.<br /></p>
<p>The documentation will be by default installed to<br /></p>
<pre>   ${CMAKE_INSTALL_PREFIX}/share/javadoc/&lt;VAR&gt;<br /></pre>
    <p><br /></p>
<p>if you don't set the INSTALLPATH.<br /></p>

  </li>
  <li>
    <a name="module:UseJavaClassFilelist"><b><code>UseJavaClassFilelist</code></b></a>:  <br />
    <p><br /></p>
<p>This script create a list of compiled Java class files to be added to a jar file. This avoids including cmake files which get created in the binary directory.<br /></p>

  </li>
  <li>
    <a name="module:UseJavaSymlinks"><b><code>UseJavaSymlinks</code></b></a>:  <br />
    <p><br /></p>
<p>Helper script for UseJava.cmake<br /></p>

  </li>
  <li>
    <a name="module:UsePkgConfig"><b><code>UsePkgConfig</code></b></a>: Obsolete pkg-config module for CMake, use FindPkgConfig instead.<br />
    <p><br /></p>
<p>This module defines the following macro:<br /></p>
<p>PKGCONFIG(package includedir libdir linkflags cflags)<br /></p>
<p>Calling PKGCONFIG will fill the desired information into the 4 given arguments, e.g. PKGCONFIG(libart-2.0 LIBART_INCLUDE_DIR LIBART_LINK_DIR LIBART_LINK_FLAGS LIBART_CFLAGS) if pkg-config was NOT found or the specified software package doesn't exist, the variable will be empty when the function returns, otherwise they will contain the respective information<br /></p>

  </li>
  <li>
    <a name="module:UseQt4"><b><code>UseQt4</code></b></a>: Use Module for QT4<br />
    <p>Sets up C and C++ to use Qt 4.  It is assumed that FindQt.cmake has already been loaded.  See FindQt.cmake for information on how to load Qt 4 into your CMake project.</p>

  </li>
  <li>
    <a name="module:UseSWIG"><b><code>UseSWIG</code></b></a>: SWIG module for CMake<br />
    <p>Defines the following macros:<br /></p>
<pre>   SWIG_ADD_MODULE(name language [ files ])<br />     - Define swig module with given name and specified language<br />   SWIG_LINK_LIBRARIES(name [ libraries ])<br />     - Link libraries to swig module<br /></pre>
    <p>All other macros are for internal use only. To get the actual name of the swig module, use: ${SWIG_MODULE_${name}_REAL_NAME}. Set Source files properties such as CPLUSPLUS and SWIG_FLAGS to specify special behavior of SWIG. Also global CMAKE_SWIG_FLAGS can be used to add special flags to all swig calls. Another special variable is CMAKE_SWIG_OUTDIR, it allows one to specify  where to write all the swig generated module (swig -outdir option) The name-specific variable SWIG_MODULE_&lt;name&gt;_EXTRA_DEPS may be used to specify extra dependencies for the generated modules. If the source file generated by swig need some special flag you can use SET_SOURCE_FILES_PROPERTIES( ${swig_generated_file_fullname}<br /></p>
<pre>        PROPERTIES COMPILE_FLAGS "-bla")<br /></pre>
    
  </li>
  <li>
    <a name="module:Use_wxWindows"><b><code>Use_wxWindows</code></b></a>: ---------------------------------------------------<br />
    <p><br /></p>
<p>This convenience include finds if wxWindows is installed and set the appropriate libs, incdirs, flags etc. author Jan Woetzel &lt;jw -at- mip.informatik.uni-kiel.de&gt; (07/2003)<br /></p>
<p>USAGE:<br /></p>
<pre>   just include Use_wxWindows.cmake<br />   in your projects CMakeLists.txt<br /></pre>
    <p>INCLUDE( ${CMAKE_MODULE_PATH}/Use_wxWindows.cmake)<br /></p>
<pre>   if you are sure you need GL then<br /></pre>
    <p>SET(WXWINDOWS_USE_GL 1)<br /></p>
<pre>   *before* you include this file.<br /></pre>
    
  </li>
  <li>
    <a name="module:UsewxWidgets"><b><code>UsewxWidgets</code></b></a>: Convenience include for using wxWidgets library.<br />
    <p>Determines if wxWidgets was FOUND and sets the appropriate libs, incdirs, flags, etc. INCLUDE_DIRECTORIES and LINK_DIRECTORIES are called.<br /></p>
<p>USAGE<br /></p>
<pre>  # Note that for MinGW users the order of libs is important!<br />  FIND_PACKAGE(wxWidgets REQUIRED net gl core base)<br />  INCLUDE(${wxWidgets_USE_FILE})<br />  # and for each of your dependent executable/library targets:<br />  TARGET_LINK_LIBRARIES(&lt;YourTarget&gt; ${wxWidgets_LIBRARIES})<br /></pre>
    <p><br /></p>
<p>DEPRECATED<br /></p>
<pre>  LINK_LIBRARIES is not called in favor of adding dependencies per target.<br /></pre>
    <p><br /></p>
<p>AUTHOR<br /></p>
<pre>  Jan Woetzel &lt;jw -at- mip.informatik.uni-kiel.de&gt;<br /></pre>
    
  </li>
  <li>
    <a name="module:WriteBasicConfigVersionFile"><b><code>WriteBasicConfigVersionFile</code></b></a>:  <br />
    <pre>  WRITE_BASIC_CONFIG_VERSION_FILE( filename VERSION major.minor.patch COMPATIBILITY (AnyNewerVersion|SameMajorVersion) )<br /></pre>
    <p><br /></p>
<p>Writes a file for use as &lt;package&gt;ConfigVersion.cmake file to &lt;filename&gt;. See the documentation of FIND_PACKAGE() for details on this.<br /></p>
<pre>    filename is the output filename, it should be in the build tree.<br />    major.minor.patch is the version number of the project to be installed<br /></pre>
    <p>The COMPATIBILITY mode AnyNewerVersion means that the installed package version will be considered compatible if it is newer or exactly the same as the requested version. If SameMajorVersion is used instead, then the behaviour differs from AnyNewerVersion in that the major version number must be the same as requested, e.g. version 2.0 will not be considered compatible if 1.0 is requested. If your project has more elaborated version matching rules, you will need to write your own custom ConfigVersion.cmake file instead of using this macro.<br /></p>
<p>Example:<br /></p>
<pre>     write_basic_config_version_file(${CMAKE_CURRENT_BINARY_DIR}/FooConfigVersion.cmake<br />                                     VERSION 1.2.3<br />                                     COMPATIBILITY SameMajorVersion )<br />     install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FooConfigVersion.cmake<br />                   ${CMAKE_CURRENT_BINARY_DIR}/FooConfig.cmake<br />             DESTINATION lib/cmake/Foo )<br /></pre>
    <p><br /></p>
<p>Internally, this macro executes configure_file() to create the resulting version file. Depending on the COMPATIBLITY, either the file BasicConfigVersion-SameMajorVersion.cmake.in or BasicConfigVersion-AnyNewerVersion.cmake.in is used. Please note that these two files are internal to CMake and you should not call configure_file() on them yourself, but they can be used as starting point to create more sophisticted custom ConfigVersion.cmake files.</p>

  </li>
</ul>
<h2><a name="section_Copyright"/>Copyright</h2>
<p>Copyright 2000-2009 Kitware, Inc., Insight Software Consortium.  All rights reserved.</p>

<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>

<p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</p>

<p>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p>

<p>Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.</p>

<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>

<h2><a name="section_SeeAlso"/>See Also</h2>
<ul>
    <li><a href="#see:HomePage"><b><code>Home Page</code></b></a></li>    <li><a href="#see:FrequentlyAskedQuestions"><b><code>Frequently Asked Questions</code></b></a></li>    <li><a href="#see:OnlineDocumentation"><b><code>Online Documentation</code></b></a></li>    <li><a href="#see:MailingList"><b><code>Mailing List</code></b></a></li></ul>
<p>.B ccmake(1), cpack(1), ctest(1), cmakecommands(1), cmakecompat(1), cmakemodules(1), cmakeprops(1), cmakevars(1)</p>

<p>The following resources are available to get help using CMake:</p>

<ul>
  <li>
    <a name="see:HomePage"><b><code>Home Page</code></b></a>: <a href="http://www.cmake.org">http://www.cmake.org</a><br />
    <p>The primary starting point for learning about CMake.</p>

  </li>
  <li>
    <a name="see:FrequentlyAskedQuestions"><b><code>Frequently Asked Questions</code></b></a>: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br />
    <p>A Wiki is provided containing answers to frequently asked questions. </p>

  </li>
  <li>
    <a name="see:OnlineDocumentation"><b><code>Online Documentation</code></b></a>: <a href="http://www.cmake.org/HTML/Documentation.html">http://www.cmake.org/HTML/Documentation.html</a><br />
    <p>Links to available documentation may be found on this web page.</p>

  </li>
  <li>
    <a name="see:MailingList"><b><code>Mailing List</code></b></a>: <a href="http://www.cmake.org/HTML/MailingLists.html">http://www.cmake.org/HTML/MailingLists.html</a><br />
    <p>For help and discussion about using cmake, a mailing list is provided at cmake@cmake.org. The list is member-post-only but one may sign up on the CMake web page. Please first read the full documentation at <a href="http://www.cmake.org">http://www.cmake.org</a> before posting questions to the list.</p>

  </li>
</ul>
<p>Summary of helpful links:<br /></p>
<pre>  Home: <a href="http://www.cmake.org">http://www.cmake.org</a><br />  Docs: <a href="http://www.cmake.org/HTML/Documentation.html">http://www.cmake.org/HTML/Documentation.html</a><br />  Mail: <a href="http://www.cmake.org/HTML/MailingLists.html">http://www.cmake.org/HTML/MailingLists.html</a><br />  FAQ:  <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br /></pre>
    
</body></html>
